8000 Deprecate more proxies-related methods or calls by greg0ire · Pull Request #12020 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deprecate more proxies-related methods or calls #12020

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

greg0ire
Copy link
Member

No description provided.

@greg0ire greg0ire added this to the 3.5.0 milestone Jun 25, 2025
'Passing anything but null as $proxyDir to %s is deprecated and will not be possible in Doctrine ORM 3.0.',
__METHOD__,
);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@derrabus @SenseException one way to be forward-compatible with the desired signature (one that omits $proxyDir while still specifying a cache is to use named arguments, but I haven't find a way to enforce that, so right now, I'm just deprecating passing null.

Do you know of a way to detect if $proxyDir was used (even with null)?
If not, then maybe I should create new methods like createAttributeMetadataConfig that do not have that argument and deprecate the Configuration-suffixed methods in favor of the Config-suffixed ones?

I have also considered doing some kind of CacheItemPoolInterface|string|null $proxyDirOrCache - based horror, but with named, arguments, that's a breaking change.

WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

I will create a dedicated PR shortly with the "new methods" solution. In the meantime, let's merge this.

Copy link
Member Author

Choose a reason for hiding this comment

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

See #12022

@greg0ire greg0ire merged commit eb2e7d9 into doctrine:3.5.x Jun 25, 2025
86 checks passed
@greg0ire greg0ire deleted the depr-legacy-proxy branch June 25, 2025 21:20
xabbuh added a commit to symfony/symfony that referenced this pull request Jun 26, 2025
…n available (xabbuh)

This PR was merged into the 6.4 branch.

Discussion
----------

[DoctrineBridge] use native lazy objects on PHP 8.4+ when available

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

following the changes from doctrine/orm#12005 and doctrine/orm#12020

Commits
-------

1256ce9 use native lazy objects on PHP 8.4+ when available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0