Skip to content

Commit 560dc18

Browse files
chore(deps): update phpstan packages to v2 (major) (#106)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 372c823 commit 560dc18

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"cdn77/coding-standard": "^7.0",
2828
"infection/infection": "^0.29.0",
2929
"phpstan/extension-installer": "^1.0",
30-
"phpstan/phpstan": "^1",
31-
"phpstan/phpstan-phpunit": "^1",
32-
"phpstan/phpstan-strict-rules": "^1"
30+
"phpstan/phpstan": "^2",
31+
"phpstan/phpstan-phpunit": "^2",
32+
"phpstan/phpstan-strict-rules": "^2"
3333
},
3434
"config": {
3535
"allow-plugins": {

src/TestCheck/EveryTestHasGroup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function run(TestCase $testCaseContext): void
4848
continue;
4949
}
5050

51+
/** @var array<string> $groups */
5152
$groups = array_map(
5253
static fn ($groupAttribute) => $groupAttribute->getArguments()[0],
5354
$classReflection->getAttributes(Group::class),

tests/StubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function testValueIsDefaultWhenNotSet(): void
1818

1919
$stub = Stub::create(SimpleClass::class);
2020

21-
$stub->getProperty1();
21+
$x = $stub->getProperty1();
2222
}
2323

2424
public function testPropertyIsSetBypassingConstructor(): void

0 commit comments

Comments
 (0)