Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.12.x' into 2.13.x
Browse files Browse the repository at this point in the history
  • Loading branch information
greg0ire committed Jun 9, 2022
2 parents ddede40 + 3dc5581 commit 2bc0be6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
10 changes: 5 additions & 5 deletions lib/Doctrine/ORM/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ public function addCustomStringFunction($name, $className)
*
* @param string $name
*
* @return string|null
* @return string|callable|null
* @psalm-return class-string<FunctionNode>|callable(string):FunctionNode|null
*/
public function getCustomStringFunction($name)
Expand Down Expand Up @@ -661,8 +661,8 @@ public function addCustomNumericFunction($name, $className)
*
* @param string $name
*
* @return string|null
* @psalm-return ?class-string
* @return string|callable|null
* @psalm-return class-string|callable|null
*/
public function getCustomNumericFunction($name)
{
Expand Down Expand Up @@ -714,8 +714,8 @@ public function addCustomDatetimeFunction($name, $className)
*
* @param string $name
*
* @return string|null
* @psalm-return ?class-string $name
* @return string|callable|null
* @psalm-return class-string|callable|null $name
*/
public function getCustomDatetimeFunction($name)
{
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,6 @@ parameters:
count: 1
path: lib/Doctrine/ORM/Query/Expr/Select.php

-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 2
path: lib/Doctrine/ORM/Query/Parser.php

-
message: "#^Method Doctrine\\\\ORM\\\\Query\\\\Parser\\:\\:ArithmeticFactor\\(\\) should return Doctrine\\\\ORM\\\\Query\\\\AST\\\\ArithmeticFactor but returns Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node\\|string\\.$#"
count: 1
Expand Down
12 changes: 4 additions & 8 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2161,10 +2161,6 @@
<ArgumentTypeCoercion occurrences="1">
<code>$stringPattern</code>
</ArgumentTypeCoercion>
<DocblockTypeContradiction occurrences="2">
<code>$functionClass($functionName)</code>
<code>$functionClass($functionName)</code>
</DocblockTypeContradiction>
<InvalidArgument occurrences="1">
<code>$lookaheadType</code>
</InvalidArgument>
Expand Down Expand Up @@ -2216,7 +2212,9 @@
<code>$this-&gt;lexer-&gt;token['value']</code>
<code>$this-&gt;lexer-&gt;token['value']</code>
</InvalidScalarArgument>
<InvalidStringClass occurrences="1">
<InvalidStringClass occurrences="3">
<code>new $functionClass($functionName)</code>
<code>new $functionClass($functionName)</code>
<code>new $functionClass($functionName)</code>
</InvalidStringClass>
<LessSpecificReturnStatement occurrences="4">
Expand Down Expand Up @@ -2355,10 +2353,8 @@
<PossiblyUndefinedVariable occurrences="1">
<code>$args</code>
</PossiblyUndefinedVariable>
<RedundantConditionGivenDocblockType occurrences="3">
<RedundantConditionGivenDocblockType occurrences="1">
<code>$AST instanceof AST\SelectStatement</code>
<code>is_string($functionClass)</code>
<code>is_string($functionClass)</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="lib/Doctrine/ORM/Query/ParserResult.php">
Expand Down

0 comments on commit 2bc0be6

Please sign in to comment.