We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://psalm.dev/r/a4aded111f
It is perfectly possible for the statement get_class($this) === get_class($other) to return true or false
get_class($this) === get_class($other)
true
false
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php interface Id { public function is(Id $other): bool; public function asString(): string; } abstract class UuidId { final public function is(Id $other): bool { return get_class($this) === get_class($other) && $this->asString() === $other->asString(); } final public function asString(): string { return ''; } } interface EventId extends Id { } final class UuidEventId extends UuidId implements EventId { }
Psalm output (using commit afd8874): ERROR: TypeDoesNotContainType - 14:16 - class-string<Id> cannot be identical to class-string<UuidId>
Sorry, something went wrong.
cb24377
No branches or pull requests
https://psalm.dev/r/a4aded111f
It is perfectly possible for the statement
get_class($this) === get_class($other)
to returntrue
orfalse
The text was updated successfully, but these errors were encountered: