Skip to content
Permalink
Browse files

Don’t complain about deprecated class inside itself

  • Loading branch information...
muglug committed Sep 8, 2019
1 parent 6b52b84 commit 662f0948868139fed2706cbcd52416bf3a58ed82
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Psalm/Type/Atomic/TNamedObject.php
@@ -169,7 +169,9 @@ public function check(
return false;
}
if ($codebase->classlike_storage_provider->has($this->value)) {
if ($codebase->classlike_storage_provider->has($this->value)
&& $source->getFQCLN() !== $this->value
) {
$class_storage = $codebase->classlike_storage_provider->get($this->value);
if ($class_storage->deprecated) {

0 comments on commit 662f094

Please sign in to comment.
You can’t perform that action at this time.