Skip to content

Commit 2c57fa3

Browse files
authored
Supports PHPStan 2 (#29)
Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 6331a6e commit 2c57fa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"laravel/pint": "^1.17",
1717
"orchestra/pest-plugin-testbench": "^2.0|^3.0",
1818
"orchestra/testbench": "^8.30|^9.8",
19-
"phpstan/phpstan": "^1.12",
19+
"phpstan/phpstan": "^2.1",
2020
"spatie/laravel-ray": "^1.39"
2121
},
2222
"conflict": {

src/DevTool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function resourcesIn(string $directory): void
2626
$gate = app(GateContract::class);
2727

2828
foreach ((new Finder)->in($directory)->files() as $resource) {
29-
/** @var class-string<\Laravel\Nova\Resource> $resourceClass */
29+
/** @var class-string $resourceClass */
3030
$resourceClass = $namespace.str_replace(
3131
['/', '.php'],
3232
['\\', ''],

0 commit comments

Comments
 (0)