-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
[BC Break] 2.7 has undocumented bc breaks cause of namespace changes (e.g. by removal of 'Doctrine\Bridge') #4694
Comments
It should not break we introduced class aliases for every namespace changes in https://github.com/api-platform/core/blob/main/src/deprecated_interfaces.php#L37 (used in https://github.com/api-platform/core/blob/main/src/deprecation.php). I'll try to use the above code and to reproduce but it'd be faster if you had a repository that I can try. Also please tell me how you installed the main branch. |
Here we go: steps to reproduce:
Btw: My PhpStorm is also not able to link the namespaces after upgrade to |
Nice thanks ! |
about phpstorm not sure I'm able to do anything, it should work if it loads the
|
mhh this is creating another issue I'm still looking :/ |
fixed and phpstorm shouldn't complain anymore, many thanks for the issue! |
API Platform version(s) affected:
2.7
/dev-main
Description
As @laryjulien stated in #4556 (comment)
see e.g.:
10827bb
How to reproduce
Implement a class to filter subresources according to solution in #2253 (comment) and update from
2.6.8
to2.7
/dev-main
.This will result in
Type error: App\Doctrine\DefaultOrderExtensionDecorator::__construct(): Argument #1 ($decorated) must be of type ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\OrderExtension, ApiPlatform\Doctrine\Orm\Extension\OrderExtension given
. See example code below.Changing
use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\OrderExtension;
touse ApiPlatform\Doctrine\Orm\Extension\OrderExtension;
fixes the error in the example code.Possible Solution
CHANGELOG.md
OR:
CHANGELOG.md
Additional Context
dev-main
on my api-platform projects.Core\Bridge
Edit: clarified which exception is occuring.
The text was updated successfully, but these errors were encountered: