Skip to content

Commit 6cc6b3d

Browse files
committed
Include the fix as well as the test changes
1 parent c4c0db8 commit 6cc6b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsing/SourceException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SourceException extends \Exception implements Positionable
1717
public function __construct(string $message, ?int $lineNumber = null)
1818
{
1919
$this->setPosition($lineNumber);
20-
if ($lineNumber !== 0) {
20+
if ($lineNumber !== null) {
2121
$message .= " [line no: $lineNumber]";
2222
}
2323
parent::__construct($message);

0 commit comments

Comments
 (0)