-
Notifications
You must be signed in to change notification settings - Fork 20
Test failures with PHPStan dev-master #50
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
Comments
OK so the reason is
Now Bar::deprecatedFoo is marked as deprecated. My editor thinks it's not deprecated. Only when I add
to the method, phpstorm thinks so. Personally I think we should have the current behaviour (that's failing the tests), so just adjust the assertions. What do you think? The same is the case for the other test failure regarding static methods. Except the missing error, which is now not marked as deprecated because of the first line where
Scope is apparently deprecated when it's a static function? Not sure about this one. Will open a PR which fixes the tests at least (with adjusting them). |
Hi, I'm having this problem with PHPStan 1.3.0 with this kind of code: class LifecycleEventArgs
{
private object $object;
public function __construct(object $object)
{
$this->object = $object;
}
/**
* @deprecated
*/
public function getEntity(): object
{
return $this->object;
}
public function getObject(): object
{
return $this->object;
}
}
class ORMLifecycleEventArgs extends BaseLifecycleEventArgs
{
public function getEntity(): object
{
return $this->getObject();
}
} I'm getting:
|
@franmomu This is an expected change after phpstan/phpstan-src#792. Feel free to ignore it: https://phpstan.org/user-guide/ignoring-errors |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi @eiriksm, after your latest changes in phpstan-src, there are now failures in this repo:
Can you please look into it so we know what needs fixing? If the tests asserts here are reasonable then phpstan-src needs fixing, or these asserts need to be edited.
The text was updated successfully, but these errors were encountered: