-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unclosed array expression should throw exception
In the current implementation we do not take into account that people may try the following notation: `@var array(string => string|null)` At the moment this is interpreted as an Array Expression but fails because the space causes the parser to see this as `array(string`, meaning an unclosed array expression. This change introduces a new RuntimeException that is thrown in this situation, it is up to the consumer of this library to deal with this situation however it deems best.
- Loading branch information
Showing
2 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters