Skip to content

Commit c83f8d0

Browse files
committed
removed PHP < 7 stuff
1 parent 524260f commit c83f8d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/RobotLoader/RobotLoader.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ private function scanPhp($file)
322322

323323

324324
try {
325-
$tokens = PHP_VERSION_ID >= 70000
326-
? token_get_all($code, TOKEN_PARSE)
327-
: @token_get_all($code); // @ can be corrupted or can use newer syntax
325+
$tokens = token_get_all($code, TOKEN_PARSE);
328326
} catch (\ParseError $e) {
329327
if ($this->reportParseErrors) {
330328
$rp = new \ReflectionProperty($e, 'file');

0 commit comments

Comments
 (0)