-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
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
Static return type error #5244
Labels
Comments
I found these snippets: https://psalm.dev/r/3e50a930e7<?php
abstract class A
{
abstract public static function create(): static;
}
final class X extends A
{
public static function create(): static
{
return new self();
}
}
final class Z extends A
{
/**
* @psalm-return static
*/
public static function create(): static
{
return new self();
}
}
|
It seem to affect final classes only, even with |
This was referenced Mar 15, 2021
This was referenced Mar 15, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is another case around of #5070, I guess.
https://psalm.dev/r/3e50a930e7
The text was updated successfully, but these errors were encountered: