Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 555667e

Browse files
committed
Merge pull request #172 from remicollet/issue-php-74
fix Trying to access array offset on value of type nul (7.4)
2 parents 47892b3 + 7ddf144 commit 555667e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scanner/MethodScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ protected function scan()
452452
$tokenType = null;
453453
$tokenContent = $token;
454454
$tokenLine = $tokenLine + substr_count(
455-
$lastTokenArray[1],
455+
$lastTokenArray[1] ?? null,
456456
"\n"
457457
); // adjust token line by last known newline count
458458
} else {

0 commit comments

Comments
 (0)