Current examples will fail on PHP 5.2.x and 5.3.x
robneu opened this issue · 3 comments
robneu commented
The short array syntax wasn't introduced until PHP 5.4, so the current examples will produce fatal errors for anyone running an older version.
You could bump the version requirement, but it seems like a somewhat trivial thing to force 5.4+
GaryJones commented
Sorry - 5.4 is at the least the minimum I support now for this. The project I'm using this on uses PHP 5.6, so I've got no interest in supporting older.
The https://github.com/GaryJones/Gamajo-Registerable project still exists for this reason - it has the same end effect, but is backwards compatible for PHP 5.2.
robneu commented
Ahhh okay. Sorry for the confusion. I thought I'd seen this code before, but didn't make the connection. 👍