Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Update Zend\Stdlib\Hydrator\HydratorInterface to extend Zend\Hydrator\HydratorInterface #26

Merged
merged 5 commits into from
Sep 23, 2015

Conversation

adamlundrigan
Copy link
Contributor

See #25

@weierophinney
Copy link
Member

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
Copy link
Member

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.

Copy link
Contributor Author

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
@weierophinney weierophinney merged commit d669263 into zendframework:master Sep 23, 2015
weierophinney added a commit that referenced this pull request Sep 23, 2015
Update Zend\Stdlib\Hydrator\HydratorInterface to extend Zend\Hydrator\HydratorInterface
weierophinney added a commit that referenced this pull request Sep 23, 2015
weierophinney added a commit that referenced this pull request Sep 23, 2015
weierophinney added a commit that referenced this pull request Sep 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants