-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change method parameters declaration from Entity to EntityInterface. #7416
Conversation
Sounds reasonable to code against the interface instead of the concrete class. |
* of this association | ||
* @param array $targetEntities list of entities belonging to the `target` side | ||
* of this association | ||
* @return bool | ||
* @throws \InvalidArgumentException | ||
*/ | ||
protected function _checkPersistenceStatus($sourceEntity, array $targetEntities) | ||
protected function _checkPersistenceStatus(EntityInterface $sourceEntity, array $targetEntities) |
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.
Please no annotation in the protected methods
Looks good to me except for the added hints to the protected methods |
Thanks @skie! |
Change method parameters declaration from Entity to EntityInterface.
I believe the removal of |
👍 |
No description provided.