Skip to content

Conversation

@eiriksm
Copy link
Contributor

@eiriksm eiriksm commented Nov 20, 2021

No description provided.

@ondrejmirtes
Copy link
Member

Hi, this ought to be rather fixed in https://github.com/phpstan/phpstan-src/blob/eb074fdc9a70542c9d227b26a89031aeeeca7943/src/PhpDoc/ResolvedPhpDocBlock.php#L193 - it should be merged from parent docblocks as well, see for example how the throwsTag is handled above.

Can be tested for example in ClassReflectionTest by getting $this->createReflectionProvider(), and getting the class method in question to see if PHPStan considers it deprecated as well.

@eiriksm
Copy link
Contributor Author

eiriksm commented Nov 20, 2021

Sounds even better. Created here: phpstan/phpstan-src#792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants