fixed a syntax error
added a helper function to backport php5.5 '::class' scalar