Skip to content

Commit 1d22f8c

Browse files
author
Cristoforo Cervino
committed
fix: fix phpstan
1 parent bf0b51c commit 1d22f8c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
"phpunit/phpunit": "^9.5",
3232
"symfony/framework-bundle": "^4.4 | ^5.0",
3333
"symfony/yaml": "^5.2",
34-
"phpstan/phpstan": "^0.12.78",
35-
"phpstan/phpstan-phpunit": "^0.12.17",
36-
"phpstan/extension-installer": "^1.1",
37-
"phpstan/phpstan-symfony": "^0.12.20",
3834
"ext-json": "*",
3935
"friendsofphp/php-cs-fixer": "^3.35",
40-
"doctrine/annotations": "^2.0"
36+
"doctrine/annotations": "^2.0",
37+
"phpstan/phpstan": "^1.10",
38+
"phpstan/phpstan-phpunit": "^1.3",
39+
"phpstan/extension-installer": "^1.3",
40+
"phpstan/phpstan-symfony": "^1.3"
4141
},
4242
"autoload": {
4343
"psr-4": {

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
parameters:
22
level: 8
33
checkMissingIterableValueType: false
4+
treatPhpDocTypesAsCertain: false

src/SharedQueryBuilder.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@ public function setParameters($parameters): self
640640
if (! $this->immutableParameters->isEmpty()) {
641641
throw new CannotOverrideParametersException();
642642
}
643-
// @phpstan-ignore-next-line
644643
$this->qb->setParameters($parameters);
645644

646645
return $this;
@@ -654,7 +653,6 @@ public function setImmutableParameters($parameters): self
654653
if (! $this->immutableParameters->isEmpty()) {
655654
throw new CannotOverrideParametersException();
656655
}
657-
// @phpstan-ignore-next-line
658656
$this->qb->setParameters($parameters);
659657
foreach ($this->qb->getParameters()->getValues() as $param) {
660658
$this->immutableParameters->add($param);

0 commit comments

Comments
 (0)