Use isset() method
mimosu opened this issue · 6 comments
mimosu commented
isset(1);
PHP Parse error: Syntax error, unexpected T_LNUMBER on line 1
GrahamCampbell commented
Please open an issue upstream.
bobthecow commented
This is … what PHP does when you call isset()
on a literal number?
GrahamCampbell commented
Is the complaint that psysh doesn't catch that this is not allowed, and provide a nice error message, like it does for some other syntax errors?
bobthecow commented
maybe? ¯\_(ツ)_/¯
I just pushed a change that adds a code cleaner for isset()
☝️
driesvints commented
Nice. Thanks @bobthecow!