Skip to content

Commit 5208338

Browse files
jrfnlgrogy
authored andcommitted
CS/QA: remove redundant variable declaration
1 parent 5d87edb commit 5208338

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Errors/SyntaxError.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ public function getLine()
1717
preg_match('~on line ([0-9]+)$~', $this->message, $matches);
1818

1919
if ($matches && isset($matches[1])) {
20-
$onLine = (int) $matches[1];
21-
return $onLine;
20+
return (int) $matches[1];
2221
}
2322

2423
return null;

0 commit comments

Comments
 (0)