We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f5869 commit 3740176Copy full SHA for 3740176
src/ErrorPayload.php
@@ -20,14 +20,14 @@ class ErrorPayload extends Payload
20
/** @var string */
21
protected $lineNumber;
22
23
- public function __construct(string $content, string $fileAndLineNumber = '')
+ public function __construct(string $content, string $label = '')
24
{
25
$this->content = $content;
26
27
$this->label = 'error';
28
29
// Sorry ;) mis-using the $label to overwrite the file and fileNumber
30
- $fileAndLineNumber = explode( ':', $fileAndLineNumber );
+ $fileAndLineNumber = explode( ':', $label );
31
32
$this->file = $fileAndLineNumber[0];
33
$this->lineNumber = $fileAndLineNumber[1];
0 commit comments