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(): bug fix for attributes leaking into type hint
This commit adds handling of parameter attributes to the `File::getMethodParameters()` method as per option [2] discussed in issue 3298.
In practice this means that:
* [New] A new `attributes` index is introduced into the returned array which will hold a boolean value indicating whether attributes are attached to the parameter.
* [Unchanged] The `content` index in the returned array includes the textual representation of any attributes attached to a parameter.
* [Fixed] The `type_hint` and `type_hint_token` indexes will no longer be polluted (set incorrectly) with information belonging to the attribute(s) instead of to the type declaration.
Includes minor efficiency fix for handling of parenthesis and brackets in default values.
Includes dedicated unit test.
Fixes 3298
0 commit comments