Closed staabm closed 3 weeks ago
it may be due re-asign (by ArrayDimFetch) on other method, using only on construct seems add the type hint https://getrector.com/demo/09879ef0-4c66-4b30-b3d1-0d60c5659229
ok, let me debug TypedPropertyFromStrictConstructorRector
I created PR https://github.com/rectorphp/rector-src/pull/5861 already.
Bug Report
vendor/bin/rector --version
)Minimal PHP Code Causing Issue
https://getrector.com/demo/45658bf6-99fd-457d-9601-4a9d496c12b3
Expected Behaviour
I wonder why none of the
typeDeclaration
-rules adds a nativearray
property type forprivate $exitcodeLabels;
in this code