-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
v3.4.0 ProxyGenerator Warning: Undefined array key #982
Comments
@forgie1 line 1131 sounds weird as that's just phpdoc common/src/Proxy/ProxyGenerator.php Line 1131 in d534f19
I guess the problem lies somehow in line 1125 common/src/Proxy/ProxyGenerator.php Line 1125 in d534f19
|
Oops, I've checked current branch writing above, indeed the line is correct in tagged version: https://github.com/doctrine/common/blob/3.4.0/src/Proxy/ProxyGenerator.php#L1131. Still, we'd greatly appreciate a reproducer |
@malarzm it looks like it fails on this parameter:
Setter for our parameter named
$parameter passed to
Result of
So there is really no array key 1. To prepare failing test I would have to delve more into the Doctrine Common. |
This seems weird, reflection's string representation is correct: https://3v4l.org/qGBdg#v8.1.9. The thing that stands out to me, why do you have an instance of |
Having Nette's reflection is exactly the culprit as it has its own |
To elaborate a bit: |
@malarzm you are right, this was the problem |
doctrine/common version:
3.4.0
PHP version:
8.1.1
This code
Results to following warning in
\vendor\doctrine\common\src\Proxy\ProxyGenerator.php:1131
:This didn't happen in version
3.3.1
The text was updated successfully, but these errors were encountered: