Closed sebastianbergmann closed 12 years ago
'Default' is a reserved word and thus not valid for a class name. On the token level it will result in T_DEFAULT rather than a string for the class name. Admittingly though, the error message didn't make any sense.
The code has been changed to be more strict and throw an exception in case an invalid class construction is detected. Fix has been pushed with commit 085d270d170154285bf56ef0a40908bf782007a3 and will be released with the upcoming version.
If I change
class Default extends AbstractStrategy
to justclass Default
it works.