-
Notifications
You must be signed in to change notification settings - Fork 75
Zend\Stdlib\Hydrator interfaces no longer accepted by Zend\Form #25
Comments
They already do! 2.6.0 depends on stdlib 2.7, which keeps all existing It sounds almost like stdlib want updated properly; can you verify the
|
I have zend-stdlib 2.7.1 and in it The plural "...interfaces in Zend\Stdlib\Hydrator..." in my original post wasn't warranted...it's only the HydratorInterface that's affected. The Hydration and Extraction interfaces are OK. |
Oof, can't believe I missed that one! Yes, please do a PR, and I'll get it Thanks, Adam!
|
It was a tricky one, took some headscratching and a few runs through the inheritance chain to spot it. PR to fix is in #26 |
Closed with #26. |
I happened to do a "composer update" on one of my projects very soon after Zend\Form 2.6.0 was released, and because of my version constraint (~2.5) it was installed...and then my form broke with this error:
Since my custom hydrator implemented the Zend\Stdlib\Hydrator\HydratorInterface directly instead of inheriting from AbstractHydrator I could no longer use my custom hydrator in forms.
The fix was simple (replace references to "Stdlib\Hydrator" with "Hydrator") but it's still a break. IMO the better way to fix it would be to update the interfaces in Zend\Stdlib\Hydrator to extend the new ones from the Zend\Hydrator namespace. If that's an acceptable solution I can send a PR
The text was updated successfully, but these errors were encountered: