You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File::getMethodParameters(): allow for readonly properties without visibility
Follow up on PR 3516 which was included in PHPCS 3.7.0.
Turns out that constructor property promotion also allows for declaring properties with the `readonly` keyword, but without explicit visibility set.
See: https://3v4l.org/nli62
Readonly properties without explicit visibility are already handled correctly in the `File::getMemberProperties()` method, but were not handled correctly in the `File::getMethodParameters()` method.
Fixed now.
Includes updated documentation and a unit test.
0 commit comments