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

visibility_required doesn't work with PHP 8 union types #5668

Closed
stancl opened this issue Apr 30, 2021 · 1 comment
Closed

visibility_required doesn't work with PHP 8 union types #5668

stancl opened this issue Apr 30, 2021 · 1 comment
Labels

Comments

@stancl
Copy link

stancl commented Apr 30, 2021

Bug report

This fixer seems to add visibility for each listed type. The code below becomes protected array|public Closure $abc = [];

Config:

'visibility_required' => [
    'elements' => ['method', 'property']
],

Code snippet that reproduces the problem

class Foo
{
    protected array|Closure $abc = [];
}
@kubawerlos
Copy link
Contributor

I was fixed in #5660.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants