-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add support for union types and mixed type in ProxyGenerator #910
Conversation
BTW if you need any help with PHPStan, don't hesitate to reach me directly instead of speculating over less than ideal solutions... |
Will ping you directly from now on ^^ |
9a5402c
to
7204aae
Compare
function (ReflectionType $unionedType) use ($method, $parameter) { | ||
return $this->formatType($unionedType, $method, $parameter); | ||
}, | ||
$type->getTypes() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeCov says the lines are not covered, and it is correct: there is no PHP 8 job yet. I'll try to add one in a different PR, as well as the other minor improvements I added that pollute this PR.
237a831
to
62ea166
Compare
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
62ea166
to
39cfef4
Compare
That code cannot run on PHP8+
39cfef4
to
b5f3cd5
Compare
Adds support for generating proxies for classes using the following new PHP 8 syntax constructs: