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
When PHPStan detects a never type (eg. because the parsed type-hints have no valid intersection) the checks in \Rector\NodeTypeResolver\NodeTypeResolver::isMatchingUnionType will return true and RenameMethodRector will update the method call (incorrectly).
Bug Report
When PHPStan detects a
never
type (eg. because the parsed type-hints have no valid intersection) the checks in\Rector\NodeTypeResolver\NodeTypeResolver::isMatchingUnionType
will returntrue
andRenameMethodRector
will update the method call (incorrectly).Minimal PHP Code Causing Issue
https://getrector.com/demo/7bc8c761-d9eb-436f-ad99-29bda4016273
Expected Behaviour
No update, skip
never
types.The text was updated successfully, but these errors were encountered: