Skip to content

Commit 5d196dd

Browse files
authored
chore(dev): bump phpstan to 2.x (#211)
1 parent 8eecb28 commit 5d196dd

File tree

4 files changed

+72
-69
lines changed

4 files changed

+72
-69
lines changed

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
},
1616
"require-dev": {
1717
"ergebnis/composer-normalize": "^2.43.0",
18-
"ergebnis/phpstan-rules": "^2.5.0",
18+
"ergebnis/phpstan-rules": "^2.12",
1919
"lendable/composer-license-checker": "^1.2.1",
2020
"lendable/phpunit-extensions": "^0.3",
2121
"php-cs-fixer/shim": "^3.60.0",
22-
"phpstan/phpstan": "^1.11.8",
23-
"phpstan/phpstan-deprecation-rules": "^1.2.0",
24-
"phpstan/phpstan-phpunit": "^1.4.0",
25-
"phpstan/phpstan-strict-rules": "^1.6.0",
22+
"phpstan/phpstan": "^2.1",
23+
"phpstan/phpstan-deprecation-rules": "^2.0",
24+
"phpstan/phpstan-phpunit": "^2.0",
25+
"phpstan/phpstan-strict-rules": "^2.0",
2626
"phpunit/phpunit": "^11.2.8",
27-
"rector/rector": "^1.2.2"
27+
"rector/rector": "^2.3"
2828
},
2929
"minimum-stability": "stable",
3030
"autoload": {

composer.lock

Lines changed: 63 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ parameters:
3636
level: max
3737
tmpDir: tmp/phpstan
3838

39-
checkMissingIterableValueType: true
4039
treatPhpDocTypesAsCertain: false
4140
exceptions:
4241
check:

tests/unit/Metadata/MetadataTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,9 @@ public function cannot_be_without_mandatory_keys(MetadataKey $key): void
302302
*/
303303
public static function mandatoryMetadataKeys(): iterable
304304
{
305-
yield MetadataKey::cases();
305+
foreach (MetadataKey::cases() as $case) {
306+
yield [$case];
307+
}
306308
}
307309

308310
#[Test]

0 commit comments

Comments
 (0)