diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 17ecb7083a1..6ec64518636 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -965,6 +965,16 @@ parameters: count: 1 path: lib/Doctrine/ORM/Query/Parser.php + - + message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:ArithmeticTerm\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticFactor\\|string\\.$#" + count: 1 + path: lib/Doctrine/ORM/Query/Parser.php + + - + message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:SimpleArithmeticExpression\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticTerm\\|string\\.$#" + count: 1 + path: lib/Doctrine/ORM/Query/Parser.php + - message: """ #^PHPDoc tag @return has invalid value \\(AST\\\\BetweenExpression\\| @@ -980,6 +990,11 @@ parameters: count: 1 path: lib/Doctrine/ORM/Query/Parser.php + - + message: "#^Parameter \\#1 \\$tokenType of method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:isAggregateFunction\\(\\) expects 1\\|2\\|3\\|4\\|5\\|6\\|7\\|8\\|9\\|10\\|11\\|12\\|13\\|14\\|15\\|16\\|17\\|18\\|19\\|100\\|101\\|102\\|200\\|201\\|202\\|203\\|204\\|205\\|206\\|207\\|208\\|209\\|210\\|211\\|212\\|213\\|214\\|215\\|216\\|217\\|218\\|219\\|220\\|221\\|222\\|223\\|224\\|225\\|226\\|227\\|228\\|229\\|230\\|231\\|232\\|233\\|234\\|235\\|236\\|237\\|238\\|239\\|240\\|241\\|242\\|243\\|244\\|245\\|246\\|247\\|248\\|249\\|250\\|251\\|252\\|253\\|254\\|255\\|256, int\\|string\\|null given\\.$#" + count: 2 + path: lib/Doctrine/ORM/Query/Parser.php + - message: "#^Parameter \\#2 \\$stringPattern of class Doctrine\\\\ORM\\\\Query\\\\AST\\\\LikeExpression constructor expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\InputParameter, Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node given\\.$#" count: 1 diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 4ca6227e00d..be00684ee3b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -653,8 +653,7 @@ - - ClassMetadata + ClassMetadata ClassMetadata ClassMetadata @@ -809,9 +808,8 @@ $mapping['originalField'] $mapping['targetEntity'] - + $idGenerator - $isVersioned $namespace $sequenceGeneratorDefinition $table @@ -1604,10 +1602,6 @@ executeInserts - - $isVersioned - $isVersioned - @@ -1870,6 +1864,9 @@ $class->associationMappings + + $parser->getLexer()->token['value'] + $fieldMapping $pathExpression @@ -1951,6 +1948,9 @@ $lexer->lookahead['value'] $lexer->token['value'] + + $lexer->token['value'] + $both $leading @@ -2328,11 +2328,21 @@ call_user_func($functionClass, $functionName) call_user_func($functionClass, $functionName) - + + $lookaheadType + + SelectStatement|UpdateStatement|DeleteStatement + string + string + string + string + string - + + $factors[0] $primary + $terms[0] $this->CollectionMemberExpression() $this->ComparisonExpression() $this->EmptyCollectionComparisonExpression() @@ -2342,9 +2352,11 @@ $this->LikeExpression() $this->NullComparisonExpression() - + AST\BetweenExpression| ArithmeticFactor + ArithmeticTerm + SimpleArithmeticExpression $this->lexer->getLiteral($token) @@ -2382,7 +2394,7 @@ $this->ConditionalExpression() $this->ConditionalExpression() - + $aliasIdentVariable $dql $field @@ -2390,7 +2402,6 @@ $functionName $functionName $functionName - $lookaheadType $resultVariable $this->lexer->lookahead['value'] $this->lexer->lookahead['value'] @@ -2407,7 +2418,7 @@ $token['value'] $token['value'] - + $glimpse['type'] $glimpse['value'] $lookahead['type'] @@ -2478,12 +2489,14 @@ $token['type'] $token['type'] $token['type'] - $token['type'] $token['value'] $token['value'] $token['value'] $token['value'] + + $value + getNumberOfRequiredParameters @@ -3119,11 +3132,6 @@ configure - - - Versions::getVersion('doctrine/orm') - - $entity