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

Commit

Permalink
Fix potential undefined offset issue
Browse files Browse the repository at this point in the history
- Reported by SpiffyJr, but unconfirmed
  • Loading branch information
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ClassFileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public function accept()
$done = false;
do {
++$i;
if (!array_key_exists($i, $tokens)) {
break;
}
$token = $tokens[$i];
if (is_string($token)) {
if (';' === $token) {
Expand Down

0 comments on commit d06b3a5

Please sign in to comment.