Exercise / HTMLPurifierBundle

HTML Purifier is a standards-compliant HTML filter library written in PHP.
http://htmlpurifier.org/
Other
275 stars 56 forks source link

Replace eval by require_once in ForwardCompatTypeExtensionTrait #75

Closed l-vo closed 4 years ago

l-vo commented 4 years ago

When an application use the ForwardCompatTypeExtensionTrait trait with return types, an error is triggered since the Symfony container can't determine and include the file that created the trait:

Warning: include_once(/var/www/html/vendor/exercise/html-purifier-bundle/src/Form/TypeExtension/ForwardCompatTypeExtensionTrait.php(8) : eval()'d code): failed to open stream: No such file or directory

This PR aims to fix this issue.

HeahDude commented 4 years ago

Thank you @l-vo.