The /e modifier is deprecated, use preg_replace_callback instead
Merge branch 'hotfix/5007'

Close #5007
Close #5005
Merge pull request #5008 from ftdebugger/classmap-generator

deprecated feature in classmap generator
Merge branch 'hotfix/5008' into develop

Forward port #5008