Skip to content

Commit 83dcdff

Browse files
authored
Use PHPStan 2.0 (#57)
1 parent 597961f commit 83dcdff

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"doctrine/event-manager": "^2.0",
1414
"editorconfig-checker/editorconfig-checker": "10.6.0",
1515
"ergebnis/composer-normalize": "2.44.0",
16-
"phpstan/phpstan": "1.12.6",
17-
"phpstan/phpstan-phpunit": "1.4.0",
18-
"phpstan/phpstan-strict-rules": "1.6.1",
16+
"phpstan/phpstan": "2.0.1",
17+
"phpstan/phpstan-phpunit": "2.0.0",
18+
"phpstan/phpstan-strict-rules": "2.0.0",
1919
"phpunit/phpunit": "10.5.36",
2020
"shipmonk/composer-dependency-analyser": "1.7.0",
21-
"shipmonk/phpstan-rules": "3.2.1",
21+
"shipmonk/phpstan-rules": "4.0.0",
2222
"slevomat/coding-standard": "8.15.0",
2323
"symfony/cache": "^6.4.13",
2424
"symfony/cache-contracts": "^3.5.0"

src/HintDrivenSqlWalker.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace ShipMonk\Doctrine\Walker;
44

5+
use Doctrine\ORM\Query;
56
use Doctrine\ORM\Query\AST\AggregateExpression;
67
use Doctrine\ORM\Query\AST\ArithmeticExpression;
78
use Doctrine\ORM\Query\AST\BetweenExpression;
@@ -54,6 +55,7 @@
5455
use Doctrine\ORM\Query\AST\UpdateStatement;
5556
use Doctrine\ORM\Query\AST\WhereClause;
5657
use Doctrine\ORM\Query\Parser;
58+
use Doctrine\ORM\Query\ParserResult;
5759
use Doctrine\ORM\Query\SqlOutputWalker;
5860
use LogicException;
5961
use function is_a;
@@ -70,8 +72,8 @@ class HintDrivenSqlWalker extends SqlOutputWalker
7072
private array $stringSqlWalkers = [];
7173

7274
public function __construct(
73-
$query,
74-
$parserResult,
75+
Query $query,
76+
ParserResult $parserResult,
7577
array $queryComponents,
7678
)
7779
{

0 commit comments

Comments
 (0)