-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
ReturnTypeFromStrictNewArrayRector: missing array return type - part 2 #8185
Comments
rector/rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictNewArrayRector.php Lines 106 to 112 in 51c70b1
|
if we would widen the scope to 1 dynamic array return and n-constant array/null-returns, we could support the initial snippet and additionally things like https://getrector.com/demo/c74af6a5-bc6a-479d-8469-cb3a2e56dd5a |
For union nullable, I think that can use |
@staabm |
I don't mind which of the rules gets able to resolve my initial snippet :-) - getting support the mentioned cases would be awesome |
Bug Report
similar to #8183 I would expect rector to add a
array
return type inhttps://getrector.com/demo/aed924b0-d4e6-4522-a0f2-d8a5034ca416
only difference is the added block
The text was updated successfully, but these errors were encountered: