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

Commit 7ddf144

Browse files
committed
fix Trying to access array offset on value of type nul (7.4)
1 parent 936fa7a commit 7ddf144

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)