Closed Devristo closed 5 years ago
@core23 It seems that one is already correct:
Thanks @Devristo
Any chance of a release containing this fix?
@core23 do we need this fix in sonata-project/form-extensions
?
@core23 do we need this fix in
sonata-project/form-extensions
?
It's already there: https://github.com/sonata-project/form-extensions/blob/master/src/Validator/Constraints/InlineConstraint.php
Subject
Symfony 4.4 adds typehints throughout the codebase. The public API should remain backward-compatible. However
\Sonata\Form\Validator\Constraints\InlineConstraint
overrides the@internal
__sleep
method and breaks because of the change in signature. The AbstractAdmin attaches this inline constraint for each admin.This commit works around the issue, however it still overrides an
@internal
methodI am targeting this branch, because the change should be backwards-compatible.
Closes #715
Changelog