-
Notifications
You must be signed in to change notification settings - Fork 75
Update Zend\Stdlib\Hydrator\HydratorInterface to extend Zend\Hydrator\HydratorInterface #26
Conversation
…bstitutable for Zend\Hydrator\HydratorInterface
Looks good — and excellent tests! Will merge in the morning and tag a new release. Thanks, Adam! |
|
||
/** | ||
* @deprecated Use Zend\Hydrator\HydratorInterface from zendframework/zend-hydrator instead. | ||
*/ | ||
interface HydratorInterface extends HydrationInterface, ExtractionInterface | ||
interface HydratorInterface extends BaseHydratorInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think BaseHydratorInterface should be append to the extend list and not replace previous interfaces.
This IMO the way of maintain compatibility is appending new interfaces and maintain the old ones in the list too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that! In the current state any methods typehinting on the deprecated Zend\Stdlib\Hydrator\HydrationInterface
or Zend\Stdlib\Extractor\ExtractionInterface
will no longer accept objects implementing Zend\Stdlib\Hydrator\HydratorInterface
…methods typehinted on deprecated HydrationInterface and ExtractorInterface
… typehinted on deprecated HydrationInterface and ExtractorInterface
Update Zend\Stdlib\Hydrator\HydratorInterface to extend Zend\Hydrator\HydratorInterface
See #25