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
Erroneous UndefinedClass with the following:
UndefinedClass
<?php trait CompareTrait { public static function min(self $object, self ...$objects): self { foreach ($objects as $other) { if ($other->compareTo($object) < 0) { $object = $other; } } return $object; } public static function max(self $object, self ...$objects): self { foreach ($objects as $other) { if ($other->compareTo($object) > 0) { $object = $other; } } return $object; } abstract public function compareTo(self $other): int; public function equals(self $other): bool { return 0 === $this->compareTo($other); } } class Foo { use CompareTrait; public function compareTo(self $other): int { return 0; } }
The text was updated successfully, but these errors were encountered:
f66af3e
@muglug Thanks for the really quick fix!
There seems to be still an issue, when I move the compareTo method to trait: https://psalm.dev/r/74606ca7c9
Sorry, something went wrong.
Another similar case: https://psalm.dev/r/ff2f2509b8
2f8bfff
No branches or pull requests
Erroneous
UndefinedClass
with the following:The text was updated successfully, but these errors were encountered: