Skip to content

Deprecated class is not detected #116

Description

v1.2

I use deprecated class Doctrine\ORM\ORMException.

use Doctrine\ORM\ORMException; // detected deprecation by PHPStorm IDE

class MyClass 
{
  /**
   * @throws ORMException
   */ 
  function f() {}
}
/**
 * Base exception class for all ORM exceptions.
 *
 * @deprecated Use Doctrine\ORM\Exception\ORMException for catch and instanceof
 */
class ORMException extends Exception

However phpstan/phpstan-deprecated-rules does not report this.
image

Double checked phpstan baseline if no one else has hidden this error.

It looks like this packages finds only method calls and not other statements (like use, catch for example).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions