Fixed problem with PHP5.5 ::class syntax

Fixed problem with `::class` scope resolution syntax, which was described in #9.
Seems to work in my use case, but I'm not sure I haven't accidentally broken anything.