Skip to content

Commit f151daa

Browse files
authored
Replace mocks with middlewares. (doctrine#9291)
1 parent 4b062a4 commit f151daa

File tree

6 files changed

+60
-404
lines changed

6 files changed

+60
-404
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"doctrine/cache": "^1.12.1 || ^2.1.1",
2828
"doctrine/collections": "^1.5",
2929
"doctrine/common": "^3.0.3",
30-
"doctrine/dbal": "^3.2",
30+
"doctrine/dbal": "^3.3@dev",
3131
"doctrine/deprecations": "^0.5.3",
3232
"doctrine/event-manager": "^1.1",
3333
"doctrine/inflector": "^1.4 || ^2.0",

phpstan-baseline.neon

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -735,16 +735,6 @@ parameters:
735735
count: 1
736736
path: lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php
737737

738-
-
739-
message: "#^Parameter \\#2 \\$start of method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:getSubstringExpression\\(\\) expects int, string given\\.$#"
740-
count: 1
741-
path: lib/Doctrine/ORM/Query/AST/Functions/SubstringFunction.php
742-
743-
-
744-
message: "#^Parameter \\#3 \\$length of method Doctrine\\\\DBAL\\\\Platforms\\\\AbstractPlatform\\:\\:getSubstringExpression\\(\\) expects int\\|null, string\\|null given\\.$#"
745-
count: 1
746-
path: lib/Doctrine/ORM/Query/AST/Functions/SubstringFunction.php
747-
748738
-
749739
message: "#^Parameter \\#1 \\$simpleArithmeticExpr of method Doctrine\\\\ORM\\\\Query\\\\SqlWalker\\:\\:walkSimpleArithmeticExpression\\(\\) expects Doctrine\\\\ORM\\\\Query\\\\AST\\\\SimpleArithmeticExpression, Doctrine\\\\ORM\\\\Query\\\\AST\\\\Node given\\.$#"
750740
count: 1

phpstan.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,3 @@ parameters:
1212
message: '/^Call to an undefined method Doctrine\\Common\\Cache\\Cache::deleteAll\(\)\.$/'
1313
count: 1
1414
path: lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php
15-
# See https://github.com/doctrine/dbal/pull/5129
16-
-
17-
message: '/^Parameter #3 \$startPos of method Doctrine\\DBAL\\Platforms\\AbstractPlatform::getLocateExpression\(\) expects int\|false, string given\.$/'
18-
count: 1
19-
path: lib/Doctrine/ORM/Query/AST/Functions/LocateFunction.php

psalm-baseline.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,9 @@
713713
</RedundantConditionGivenDocblockType>
714714
</file>
715715
<file src="lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php">
716+
<DeprecatedMethod occurrences="1">
717+
<code>canRequireSQLConversion</code>
718+
</DeprecatedMethod>
716719
<DeprecatedProperty occurrences="4">
717720
<code>$this-&gt;columnNames</code>
718721
<code>$this-&gt;columnNames</code>
@@ -1805,9 +1808,6 @@
18051808
</PropertyNotSetInConstructor>
18061809
</file>
18071810
<file src="lib/Doctrine/ORM/Query/AST/Functions/LocateFunction.php">
1808-
<InvalidScalarArgument occurrences="1">
1809-
<code>$sqlWalker-&gt;walkSimpleArithmeticExpression($this-&gt;simpleArithmeticExpression)</code>
1810-
</InvalidScalarArgument>
18111811
<PossiblyInvalidArgument occurrences="1">
18121812
<code>$this-&gt;simpleArithmeticExpression</code>
18131813
</PossiblyInvalidArgument>
@@ -1854,10 +1854,6 @@
18541854
</PropertyNotSetInConstructor>
18551855
</file>
18561856
<file src="lib/Doctrine/ORM/Query/AST/Functions/SubstringFunction.php">
1857-
<InvalidScalarArgument occurrences="2">
1858-
<code>$optionalSecondSimpleArithmeticExpression</code>
1859-
<code>$sqlWalker-&gt;walkSimpleArithmeticExpression($this-&gt;firstSimpleArithmeticExpression)</code>
1860-
</InvalidScalarArgument>
18611857
<PropertyNotSetInConstructor occurrences="2">
18621858
<code>$firstSimpleArithmeticExpression</code>
18631859
<code>$stringPrimary</code>

0 commit comments

Comments
 (0)