We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Kinda an edge case. I'll fix this soon.
The text was updated successfully, but these errors were encountered:
FYI, this is valid PHP:
<?php class Foo {} class Bar extends Foo { function f(parent $x) {} } (new Bar)->f(new Foo);
Laravel should be able to method injection on Bar::f, by looking up Foo in the container, but currently it looks for the string parent, by mistake.
Bar::f
Foo
parent
Sorry, something went wrong.
Is this a problem for 6.x, since running this code in Tinkerwell on 7.x works perfectly fine?
Maybe you have an old version of 7.x, because the reflector code in the latest 6.x is identical to that in 7.x.
Yeah that was it - Tinkerwell's default app is running an older version, just tested on 7.19 and fails.
Should really be as simple as adding this though:
if ($name === 'parent') { return $parameter->getDeclaringClass()->getParentClass()->getName(); }
GrahamCampbell
No branches or pull requests
Kinda an edge case. I'll fix this soon.
The text was updated successfully, but these errors were encountered: