-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 cbfe4b0
Showing
32 changed files
with
476 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
13 changes: 13 additions & 0 deletions
13
...sRule/Success/AbstractClassWithProtectedMethodAndEmbeddableAnnotationInInlineDocBlock.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; | ||
|
||
/** @Embeddable */ | ||
abstract class AbstractClassWithProtectedMethodAndEmbeddableAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...le/Success/AbstractClassWithProtectedMethodAndEmbeddableAnnotationInMultilineDocBlock.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; | ||
|
||
/** | ||
* @Embeddable | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndEmbeddableAnnotationInMultilineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...nalInAbstractClassRule/Success/AbstractClassWithProtectedMethodAndEmbeddableAttribute.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; | ||
|
||
use Doctrine\ORM; | ||
|
||
#[ORM\Mapping\Embeddable] | ||
abstract class AbstractClassWithProtectedMethodAndEmbeddableAttribute | ||
{ | ||
protected 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 | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...s/FinalInAbstractClassRule/Success/AbstractClassWithProtectedMethodAndEntityAttribute.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; | ||
|
||
use Doctrine\ORM; | ||
|
||
#[ORM\Mapping\Entity] | ||
abstract class AbstractClassWithProtectedMethodAndEntityAttribute | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...le/Success/AbstractClassWithProtectedMethodAndOrmEmbeddableAnnotationInInlineDocBlock.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\Embeddable */ | ||
abstract class AbstractClassWithProtectedMethodAndOrmEmbeddableAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...Success/AbstractClassWithProtectedMethodAndOrmEmbeddableAnnotationInMultilineDocBlock.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\Embeddable | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndOrmEmbeddableAnnotationInMultilineDocBlock | ||
{ | ||
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
...ess/AbstractClassWithProtectedMethodAndOrmMappingEmbeddableAnnotationInInlineDocBlock.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\Embeddable */ | ||
abstract class AbstractClassWithProtectedMethodAndOrmMappingEmbeddableAnnotationInInlineDocBlock | ||
{ | ||
protected function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
.../AbstractClassWithProtectedMethodAndOrmMappingEmbeddableAnnotationInMultilineDocBlock.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\Embeddable | ||
*/ | ||
abstract class AbstractClassWithProtectedMethodAndOrmMappingEmbeddableAnnotationInMultilineDocBlock | ||
{ | ||
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
...lassRule/Success/AbstractClassWithPublicMethodAndEmbeddableAnnotationInInlineDocBlock.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; | ||
|
||
/** @Embeddable */ | ||
abstract class AbstractClassWithPublicMethodAndEmbeddableAnnotationInInlineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...sRule/Success/AbstractClassWithPublicMethodAndEmbeddableAnnotationInMultilineDocBlock.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; | ||
|
||
/** | ||
* @Embeddable | ||
*/ | ||
abstract class AbstractClassWithPublicMethodAndEmbeddableAnnotationInMultilineDocBlock | ||
{ | ||
public function method(): void | ||
{ | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
.../FinalInAbstractClassRule/Success/AbstractClassWithPublicMethodAndEmbeddableAttribute.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; | ||
|
||
use Doctrine\ORM; | ||
|
||
#[ORM\Mapping\Embeddable] | ||
abstract class AbstractClassWithPublicMethodAndEmbeddableAttribute | ||
{ | ||
public 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 | ||
{ | ||
} | ||
} |
Oops, something went wrong.