{ :0 } causes Fatal Error
Closed this issue · 4 comments
luizbills commented
{
:0
}
causes Fatal error: Cannot access empty property in .../src/HJSON/HJSONParser.php on line 204
instead of a exception with message Error: Found ':' but no key name
peter279k commented
@luizbills, it looks like it's the empty key name and the hjson-php
throw the exception to warn you.
@dqsully, I think it's not the issue and this issue can be closed 😄.
dqsully commented
As of now, hjson-php will skip over this invalid property because of commit 35f8b3c. Should we throw an error instead?