-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Adjust Methods\FinalInAbstractClassRule to ignore Doctrine entities
- Loading branch information
1 parent
449466b
commit c873637
Showing
21 changed files
with
372 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...le/Failure/AbstractClassWithProtectedMethodAndWithoutEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** @eNtItY */ | ||
abstract class AbstractClassWithProtectedMethodAndWithoutEntityAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...Failure/AbstractClassWithProtectedMethodAndWithoutEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** | ||
* @eNtItY | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndWithoutEntityAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...Failure/AbstractClassWithProtectedMethodAndWithoutOrmEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** @OrM\eNtItY */ | ||
abstract class AbstractClassWithProtectedMethodAndWithoutOrmEntityAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...lure/AbstractClassWithProtectedMethodAndWithoutOrmEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** | ||
* @OrM\eNtItY | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndWithoutOrmEntityAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...sRule/Failure/AbstractClassWithPublicMethodAndWithoutEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** @eNtItY */ | ||
abstract class AbstractClassWithPublicMethodAndWithoutEntityAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...le/Failure/AbstractClassWithPublicMethodAndWithoutEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** | ||
* @eNtItY | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndWithoutEntityAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...le/Failure/AbstractClassWithPublicMethodAndWithoutOrmEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** @OrM\eNtItY */ | ||
abstract class AbstractClassWithPublicMethodAndWithoutOrmEntityAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...Failure/AbstractClassWithPublicMethodAndWithoutOrmEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Failure; | ||
|
||
/** | ||
* @OrM\eNtItY | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndWithoutOrmEntityAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ClassRule/Success/AbstractClassWithProtectedMethodAndEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @Entity */ | ||
abstract class AbstractClassWithProtectedMethodAndEntityAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ssRule/Success/AbstractClassWithProtectedMethodAndEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @Entity | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndEntityAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ssRule/Success/AbstractClassWithProtectedMethodAndOrmEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @ORM\Entity */ | ||
abstract class AbstractClassWithProtectedMethodAndOrmEntityAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ule/Success/AbstractClassWithProtectedMethodAndOrmEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @ORM\Entity | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndOrmEntityAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...Success/AbstractClassWithProtectedMethodAndOrmMappingEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @ORM\Mapping\Entity */ | ||
abstract class AbstractClassWithProtectedMethodAndOrmMappingEntityAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...cess/AbstractClassWithProtectedMethodAndOrmMappingEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @ORM\Mapping\Entity | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndOrmMappingEntityAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...actClassRule/Success/AbstractClassWithPublicMethodAndEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @Entity */ | ||
abstract class AbstractClassWithPublicMethodAndEntityAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ClassRule/Success/AbstractClassWithPublicMethodAndEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @Entity | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndEntityAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ClassRule/Success/AbstractClassWithPublicMethodAndOrmEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @ORM\Entity */ | ||
abstract class AbstractClassWithPublicMethodAndOrmEntityAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ssRule/Success/AbstractClassWithPublicMethodAndOrmEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @ORM\Entity | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndOrmEntityAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...le/Success/AbstractClassWithPublicMethodAndOrmMappingEntityAnnotationInInlineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** @ORM\Mapping\Entity */ | ||
abstract class AbstractClassWithPublicMethodAndOrmMappingEntityAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...Success/AbstractClassWithPublicMethodAndOrmMappingEntityAnnotationInMultilineDocBlock.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Ergebnis\PHPStan\Rules\Test\Fixture\Methods\FinalInAbstractClassRule\Success; | ||
|
||
/** | ||
* @ORM\Mapping\Entity | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndOrmMappingEntityAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
Oops, something went wrong.