Skip to content

Commit 8cca827

Browse files
add baselines
1 parent 7b9ea00 commit 8cca827

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
ignoreErrors:
3+
- '#Call to deprecated method getName\(\) of class MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseType#'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parameters:
2+
ignoreErrors:
3+
- '#Access to undefined constant Doctrine\\ORM\\Query\\Lexer::T_[A-Z_]+#'
4+
- '#Access to constant [A-Z_]+ on an unknown class Doctrine\\ORM\\Query\\TokenType#'
5+
- '#Fetching deprecated class constant T_IDENTIFIER of class Doctrine\\ORM\\Query\\Lexer#'
6+
- '#Fetching deprecated class constant T_OPEN_PARENTHESIS of class Doctrine\\ORM\\Query\\Lexer#'
7+
- '#Fetching deprecated class constant T_CLOSE_PARENTHESIS of class Doctrine\\ORM\\Query\\Lexer#'
8+
- '#Fetching deprecated class constant T_COMMA of class Doctrine\\ORM\\Query\\Lexer#'
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
parameters:
2+
ignoreErrors:
3+
- identifier: missingType.iterableValue
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
ignoreErrors:
3+
- '#Parameter \#1 \$phpArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToDatabaseValue\(\) expects array\|null, string given.#'
4+
- '#Parameter \#1 \$postgresArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToPHPValue\(\) expects string\|null, int given.#'
5+
- '#Property MartinGeorgiev\\Doctrine\\ORM\\Query\\AST\\Functions\\Cast::\$sourceType \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string#'

ci/phpstan/config.neon

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ includes:
33
- ../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
44
- ../../vendor/phpstan/phpstan-doctrine/extension.neon
55
- ../../vendor/phpstan/phpstan-phpunit/extension.neon
6+
- ./baselines/deprecated-methods.neon
7+
- ./baselines/lexer-constants.neon
8+
- ./baselines/phpstan-identifiers.neon
9+
- ./baselines/type-mismatches.neon
610

711
parameters:
812
level: max
@@ -17,14 +21,4 @@ parameters:
1721
maximumNumberOfProcesses: 4
1822

1923
errorFormat: table
20-
2124
reportUnmatchedIgnoredErrors: false
22-
23-
ignoreErrors:
24-
- identifier: missingType.iterableValue
25-
26-
- '#Parameter \#1 \$phpArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToDatabaseValue\(\) expects array\|null, string given.#'
27-
- '#Parameter \#1 \$postgresArray of method MartinGeorgiev\\Doctrine\\DBAL\\Types\\BaseArray::convertToPHPValue\(\) expects string\|null, int given.#'
28-
- '#Property MartinGeorgiev\\Doctrine\\ORM\\Query\\AST\\Functions\\Cast::\$sourceType \(Doctrine\\ORM\\Query\\AST\\Node\) does not accept Doctrine\\ORM\\Query\\AST\\Node\|string#'
29-
- '#Access to undefined constant Doctrine\\ORM\\Query\\Lexer::T_[A-Z_]+#'
30-
- '#Access to constant [A-Z_]+ on an unknown class Doctrine\\ORM\\Query\\TokenType#'

0 commit comments

Comments
 (0)