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
{{ message }}
Repository navigation
Commit 60c17fd
Browse filesBrowse the repository at this point in the historyBrowse files
Coordinate the fixes of too-wide return types across the class hierarchy
In a closed project, and in an open project with checkTooWideReturnTypesInProtectedAndPublicMethods,
the return type of a method that can be overridden is fixed in TooWideTypeInOverridableMemberRule.
The overriding methods emit the members of the overridden type they return and declare, the fix keeps them,
so the overridden type stays as wide as the overriding ones need. Usages computed against another version
of the overridden type do not take part in a fix.
Amp-Thread-ID: https://ampcode.com/threads/T-01a22c96-9e21-771f-9a29-4627539ba301
* @param list<int> $usedMembers the members of the type of the overridden member the overriding member uses
197
+
* @param array{list<int>, list<int>, int}|null $declaredMembers the members its PHPDoc and native types overlap and the number of members, for the fix of the overridden member
0 commit comments