Skip to content
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

Merged
merged 8 commits into from
Dec 3, 2020

Conversation

beberlei
Copy link
Member

Adds support for generating proxies for classes using the following new PHP 8 syntax constructs:

  • Union Types
  • Mixed type

composer.json Outdated Show resolved Hide resolved
@ondrejmirtes
Copy link
Contributor

BTW if you need any help with PHPStan, don't hesitate to reach me directly instead of speculating over less than ideal solutions...

@greg0ire
Copy link
Member

Will ping you directly from now on ^^

@greg0ire greg0ire force-pushed the Php8support branch 3 times, most recently from 9a5402c to 7204aae Compare November 28, 2020 16:37
function (ReflectionType $unionedType) use ($method, $parameter) {
return $this->formatType($unionedType, $method, $parameter);
},
$type->getTypes()
Copy link
Member

@greg0ire greg0ire Nov 29, 2020

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.

@beberlei beberlei merged commit 9f3e3f3 into doctrine:3.1.x Dec 3, 2020
@beberlei beberlei deleted the Php8support branch December 3, 2020 21:02
@beberlei beberlei added this to the 3.1.0 milestone Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants