Fixes 6255 Regex in MethodReflection was unreliable.  Added support for tokens
use token name instead of token code
should be T_STRING not T_FUNCTION
better support for later PHP versions
Merge branch 'hotfix/#6286-fix-#6255-token-based-parsing-for-method-bodies'

Close #6286
Close #6255