Skip to content

Commit

Permalink
chore(deps): update phpstan packages to v2 (major) (#106)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Nov 11, 2024
1 parent 372c823 commit 560dc18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"cdn77/coding-standard": "^7.0",
"infection/infection": "^0.29.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^1",
"phpstan/phpstan-phpunit": "^1",
"phpstan/phpstan-strict-rules": "^1"
"phpstan/phpstan": "^2",
"phpstan/phpstan-phpunit": "^2",
"phpstan/phpstan-strict-rules": "^2"
},
"config": {
"allow-plugins": {
Expand Down
1 change: 1 addition & 0 deletions src/TestCheck/EveryTestHasGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function run(TestCase $testCaseContext): void
continue;
}

/** @var array<string> $groups */
$groups = array_map(
static fn ($groupAttribute) => $groupAttribute->getArguments()[0],
$classReflection->getAttributes(Group::class),
Expand Down
2 changes: 1 addition & 1 deletion tests/StubTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function testValueIsDefaultWhenNotSet(): void

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

$stub->getProperty1();
$x = $stub->getProperty1();
}

public function testPropertyIsSetBypassingConstructor(): void
Expand Down

0 comments on commit 560dc18

Please sign in to comment.