Skip to content

Commit 0afa676

Browse files
committed
debug phpstan
1 parent c149c9a commit 0afa676

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/phpstan.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ jobs:
2222
- name: Install composer dependencies
2323
uses: ramsey/composer-install@v3
2424

25+
- name: Show PHPStan diagnose
26+
run: ./vendor/bin/phpstan diagnose
27+
2528
- name: Run PHPStan
2629
run: ./vendor/bin/phpstan --error-format=github

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"nunomaduro/collision": "^8.6.1",
2929
"orchestra/testbench": "^9.11 || ^10.1",
3030
"phpstan/extension-installer": "^1.4.3",
31+
"phpstan/phpstan": "^2.1.8",
3132
"phpstan/phpstan-deprecation-rules": "^2.0.1",
3233
"phpstan/phpstan-phpunit": "^2.0.4",
3334
"phpstan/phpstan-strict-rules": "^2.0.3",

src/Commands/IndexCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@ public function handle(): int
4949

5050
$indexConfigKey = $indexConfig::class;
5151

52+
/** @var bool $delete */
53+
$delete = $this->option('delete');
54+
5255
Bus::batch([
5356
[
54-
new SetupIndex($indexConfigKey, $this->option('delete')),
57+
new SetupIndex($indexConfigKey, $delete),
5558
new PopulateIndex($indexConfigKey),
5659
],
5760
])

0 commit comments

Comments
 (0)