Skip to content

Commit

Permalink
Avoid undefined index warning when using uppercase reserved word
Browse files Browse the repository at this point in the history
  • Loading branch information
Freek Vandeursen committed Jul 13, 2018
1 parent 53eb46d commit 0120056
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function validateNamespace(File $sourceFile, $stackPtr)
'Cannot use "%s" in namespace as it is reserved since PHP %s',
$stackPtr,
'Namespace',
[$namespacePart, $this->reservedWords[$namespacePart]]
[$namespacePart, $this->reservedWords[strtolower($namespacePart)]]
);
}
$stackPtr++;
Expand Down

0 comments on commit 0120056

Please sign in to comment.