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
Adds the match (get_class($foo)) case from #12882 to the existing bug-12241.php test. The $foo::class case there already covers the other form. With the sealed handling in GenericClassStringType::tryRemove() disabled, the new block fails with Match expression does not handle remaining value: class-string<Bug12241\Foo> (line 23).
The $object::class match is the same case bug-12241.php already covers. The new part is the match (get_class($object)) form from #12882, which no existing test covers. With the sealed handling in GenericClassStringType::tryRemove() reverted, it fails with Match expression does not handle remaining value: class-string<Bug12882\BaseClass>.
I can trim the data file down to the get_class() case, or close this if you'd rather not have it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the
match (get_class($foo))case from #12882 to the existingbug-12241.phptest. The$foo::classcase there already covers the other form. With the sealed handling inGenericClassStringType::tryRemove()disabled, the new block fails withMatch expression does not handle remaining value: class-string<Bug12241\Foo>(line 23).Closes phpstan/phpstan#12882