Skip to content
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

Migrate Internal namespace to PHP8 #9852

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

MarcBrillault
Copy link
Contributor

Refs #9772

end($baseElement[$relationAlias]);

$this->_identifierMap[$path][$id[$parent]][$id[$dqlAlias]] = key($baseElement[$relationAlias]);
$this->_identifierMap[$path][$id[$parent]][$id[$dqlAlias]] = array_key_last($baseElement[$relationAlias]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes a new psalm error, that we baselined, because we don't think it's legitimate. But please triple check.

greg0ire
greg0ire previously approved these changes Jun 16, 2022
@@ -80,11 +75,10 @@ abstract class AbstractHydrator
/**
* Initializes a new instance of a class derived from <tt>AbstractHydrator</tt>.
*/
public function __construct(EntityManagerInterface $em)
public function __construct(protected EntityManagerInterface $_em)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not pollute the public API with those unfortunate underscores.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't the public API already polluted by this (there was a protected property with that name). Unless we are taking named properties into account, the public API is not more polluted than it already was. But maybe we should stop polluted the public API with those, as an additional BC-break?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The underscore can be removed in a separate PR to keep this PR small.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point is that the underscore is being added to the constructor parameter with this PR. We should avoid that. If that means, we cannot use CPP yet for this parameter, so be it.

@derrabus derrabus added this to the 3.0.0 milestone Jun 16, 2022
SenseException
SenseException previously approved these changes Jun 16, 2022
@greg0ire greg0ire dismissed stale reviews from SenseException and themself via e22f02f June 17, 2022 17:21
@greg0ire greg0ire requested a review from derrabus June 17, 2022 17:21
@greg0ire greg0ire dismissed derrabus’s stale review June 18, 2022 19:40

Review has been addressed

@greg0ire greg0ire merged commit 734a1c6 into doctrine:3.0.x Jun 18, 2022
@greg0ire
Copy link
Member

Thanks @MarcBrillault !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants