Skip to content

Commit 3740176

Browse files
committed
Rename to original $label variable name
So it's more clear I'm mis-using it
1 parent 28f5869 commit 3740176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ErrorPayload.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ class ErrorPayload extends Payload
2020
/** @var string */
2121
protected $lineNumber;
2222

23-
public function __construct(string $content, string $fileAndLineNumber = '')
23+
public function __construct(string $content, string $label = '')
2424
{
2525
$this->content = $content;
2626

2727
$this->label = 'error';
2828

2929
// Sorry ;) mis-using the $label to overwrite the file and fileNumber
30-
$fileAndLineNumber = explode( ':', $fileAndLineNumber );
30+
$fileAndLineNumber = explode( ':', $label );
3131

3232
$this->file = $fileAndLineNumber[0];
3333
$this->lineNumber = $fileAndLineNumber[1];

0 commit comments

Comments
 (0)