Skip to content

Improve detection of "&" types. #40

Description

@moufmouf

Error detected:

 In method "VCR\LibraryHooks\CurlHook::__callStatic", parameter $method  
         type is type-hinted to "callable" but the @param annotation says it is  
         a "callable&string". Please fix the @param annotation.

It is OK to type hint to either "callable" OR "string" if the PHPDoc states it is a "callable&string" (PHP cannot type-hint both but either one is ok).

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