Skip to content

Replace eval by require_once in ForwardCompatTypeExtensionTrait#75

Merged
HeahDude merged 1 commit intoExercise:2.0from
l-vo:replace_eval_by_require
Mar 10, 2020
Merged

Replace eval by require_once in ForwardCompatTypeExtensionTrait#75
HeahDude merged 1 commit intoExercise:2.0from
l-vo:replace_eval_by_require

Conversation

@l-vo
Copy link
Copy Markdown
Contributor

@l-vo l-vo commented Mar 9, 2020

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.

@l-vo l-vo force-pushed the replace_eval_by_require branch from 71f10a4 to 98d3456 Compare March 9, 2020 17:55
@HeahDude HeahDude added this to the 2.0 milestone Mar 10, 2020
@HeahDude HeahDude added the Bug label Mar 10, 2020
@HeahDude HeahDude merged commit c2266f3 into Exercise:2.0 Mar 10, 2020
@HeahDude
Copy link
Copy Markdown
Collaborator

Thank you @l-vo.

@l-vo l-vo deleted the replace_eval_by_require branch March 10, 2020 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants