-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
BUGFIX: Adjust to Php 83 get_parent_class
deprecation
#3351
BUGFIX: Adjust to Php 83 get_parent_class
deprecation
#3351
Conversation
Must have gone missing while upmerging #3032 i guess |
7e7fc98
to
f6e9010
Compare
Php 8.3 deprecates allow passing NULL to `strtolower`
get_parent_class
deprecationget_parent_class
deprecation
@mhsdesign I suspect that this change has regressions. In #3406, I backported this change to 8.3 and applied it as a patch in an installation. Now, when I call an own repository that extends a Neos repository and call a method that creates a query, I get this error: Call to a member function createQueryForType() on null
Type: Error
File: Packages/Framework/Neos.Flow/Classes/Persistence/Repository.php
Line: 137 So somehow DI fails in this case. I suspect it is because PHP <8.3 |
It seems that using |
As mentioned in the post you linked,
And inside a class, |
Given that this here happens in a proxy class we can safely assume a parent::class cannot fail?! |
Yep, in this case, true. I was more trying to prove that the change as a reason for the "mthod call on null" seems… strange?! |
see https://www.php.net/manual/en/function.get-parent-class.php
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions