Skip to content

Commit

Permalink
Abstract class names must be prefixed with "Abstract"; found "Annotat…
Browse files Browse the repository at this point in the history
…ion"
  • Loading branch information
ne-sachirou committed Nov 7, 2021
1 parent 5400e95 commit 23669c2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Annotation/Inject.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

namespace Ranyuen\Di\Annotation;

use Ranyuen\Di\Reflection\Annotation;
use Ranyuen\Di\Reflection\AbstractAnnotation;

/**
* Inject annotation.
*/
class Inject extends Annotation
class Inject extends AbstractAnnotation
{
/**
* Does the method or property has @Inject annotation?
Expand Down
4 changes: 2 additions & 2 deletions src/Annotation/Named.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

namespace Ranyuen\Di\Annotation;

use Ranyuen\Di\Reflection\Annotation;
use Ranyuen\Di\Reflection\AbstractAnnotation;

/**
* Named annotation.
*/
class Named extends Annotation
class Named extends AbstractAnnotation
{
/**
* Get the values of @Named annotation.
Expand Down
4 changes: 2 additions & 2 deletions src/Annotation/Wrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

namespace Ranyuen\Di\Annotation;

use Ranyuen\Di\Reflection\Annotation;
use Ranyuen\Di\Reflection\AbstractAnnotation;

/**
* Wrap annotation.
*/
class Wrap extends Annotation
class Wrap extends AbstractAnnotation
{
/**
* Gather wraps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
* @link https://github.com/Ranyuen/Di
*/

declare(strict_types=1);

namespace Ranyuen\Di\Reflection;

/**
* Annotation base.
*/
abstract class Annotation
abstract class AbstractAnnotation
{
/**
* Does the target has the annotations?
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixture/MomongaAnnotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Fixture;

use Ranyuen\Di\Reflection\Annotation;
use Ranyuen\Di\Reflection\AbstractAnnotation;

class MomongaAnnotation extends Annotation
class MomongaAnnotation extends AbstractAnnotation
{
public function isMomonga($target)
{
Expand Down

0 comments on commit 23669c2

Please sign in to comment.