Skip to content

@throws is not parsed for PhanUnreferencedUseNormal #1555

@bobvandevijver

Description

@bobvandevijver

The snippet below will throw an PhanUnreferencedUseNormal exception, while it is being used in a valid function doc comment:

  /**
   * @throws AuthenticationException if the authentication fails
   */
  protected function attemptAuthentication(Request $request)
  {
    try {
    } catch (OidcException $e) {
      throw new OidcAuthenticationException("Request validation failed", NULL, $e);
    }
  }
src/Oidc/Security/Firewall/OidcListener.php:15 PhanUnreferencedUseNormal Possibly zero references to use statement for classlike/namespace AuthenticationException (\Symfony\Component\Security\Core\Exception\AuthenticationException)

Is probably related to #90.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis improves the quality of Phan's analysis of a codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions