Skip to content

Commit

Permalink
ENGCOM-2327: Avoid undefined index warning when using uppercase reser…
Browse files Browse the repository at this point in the history
…ved word #16785
  • Loading branch information
Stanislav Idolov authored Jul 23, 2018
2 parents dc8cd62 + a7167bd commit 01aa067
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 01aa067

Please sign in to comment.