-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce17b0e
commit f3f1dae
Showing
9 changed files
with
86 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
use Composer\InstalledVersions; | ||
|
||
$includes = []; | ||
|
||
$ormVersion = InstalledVersions::getVersion('doctrine/orm'); | ||
$hasOrm3 = $ormVersion !== null && strpos($ormVersion, '3.') === 0; | ||
if ($hasOrm3) { | ||
$includes[] = __DIR__ . '/../phpstan-baseline-orm-3.neon'; | ||
} | ||
|
||
$config = []; | ||
$config['includes'] = $includes; | ||
|
||
return $config; |
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,56 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to function method_exists\\(\\) with 'Doctrine\\\\\\\\ORM\\\\\\\\EntityManager' and 'create' will always evaluate to false\\.$#" | ||
count: 1 | ||
path: src/Doctrine/Mapping/ClassMetadataFactory.php | ||
|
||
- | ||
message: "#^Caught class Doctrine\\\\ORM\\\\ORMException not found\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/CreateQueryDynamicReturnTypeExtension.php | ||
|
||
- | ||
message: "#^Class Doctrine\\\\DBAL\\\\Types\\\\ArrayType not found\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/Descriptors/ArrayType.php | ||
|
||
- | ||
message: "#^Method PHPStan\\\\Type\\\\Doctrine\\\\Descriptors\\\\ArrayType\\:\\:getType\\(\\) should return class\\-string\\<Doctrine\\\\DBAL\\\\Types\\\\Type\\> but returns string\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/Descriptors/ArrayType.php | ||
|
||
- | ||
message: "#^Class Doctrine\\\\DBAL\\\\Types\\\\ObjectType not found\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/Descriptors/ObjectType.php | ||
|
||
- | ||
message: "#^Method PHPStan\\\\Type\\\\Doctrine\\\\Descriptors\\\\ObjectType\\:\\:getType\\(\\) should return class\\-string\\<Doctrine\\\\DBAL\\\\Types\\\\Type\\> but returns string\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/Descriptors/ObjectType.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php | ||
|
||
- | ||
message: "#^Only booleans are allowed in \\|\\|, mixed given on the left side\\.$#" | ||
count: 2 | ||
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php | ||
|
||
- | ||
message: "#^Caught class Doctrine\\\\ORM\\\\ORMException not found\\.$#" | ||
count: 1 | ||
path: src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php | ||
|
||
- | ||
message: "#^Class Doctrine\\\\DBAL\\\\Types\\\\ArrayType not found\\.$#" | ||
count: 1 | ||
path: tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$className of static method Doctrine\\\\DBAL\\\\Types\\\\Type\\:\\:addType\\(\\) expects class\\-string\\<Doctrine\\\\DBAL\\\\Types\\\\Type\\>, string given\\.$#" | ||
count: 1 | ||
path: tests/Rules/Doctrine/ORM/EntityColumnRuleTest.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
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
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