Skip to content

checkCallStaticAnnotations fails if method provideInstances is in abstract class #11

Description

@davidbrnovjak

ConsistencyChecker will throw Grifart\Enum\UsageException: You have forgotten to add @method annotations for enum 'Survilla\Enum\Enum'. Documentation block should contain if Survilla\Enum\Enum is an abstract class declaring provideInstances method.

/**
 *@method static ExampleEnum ONE()
 *@method static ExampleEnum TWO()
 *@method static ExampleEnum THREE()
 */
class ExampleEnum extends MyEnumsAbstract {

  private const ONE = 'one';
  private const TWO = 'two';
  private const THREE = 'three';
}

abstract class MyEnumsAbstract extends \Grifart\Enum\Enum {

  use Grifart\Enum\AutoInstances;

 /** Some common behavior... **/

}

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