Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit a357fb9

Browse files
phpstan level 3
1 parent 85d9e46 commit a357fb9

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: 3
3+
paths:
4+
- src
5+
excludePaths:
6+
- src/DependencyInjection/Configuration.php

src/Controller/Crud/ProcessCrudController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function configureFields(string $pageName): array
6060
'target',
6161
'lastExecutionDate',
6262
IntegerField::new('lastExecutionStatus')->formatValue(static function (?int $value) {
63-
/* @phpstan-ignore-next-line */
6463
return match ($value) {
6564
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
6665
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',

src/Controller/Crud/ProcessExecutionCrudController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public function configureFields(string $pageName): array
7676
'startDate',
7777
'endDate',
7878
IntegerField::new('status')->formatValue(static function (int $value) {
79-
/* @phpstan-ignore-next-line */
8079
return match ($value) {
8180
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
8281
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',

src/Controller/Crud/UserCrudController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function __construct(UserPasswordHasherInterface $passwordHasher)
3535

3636
public function configureCrud(Crud $crud): Crud
3737
{
38-
$crud->showEntityActionsAsDropdown(false);
38+
$crud->showEntityActionsInlined();
3939
$crud->setEntityPermission('ROLE_ADMIN');
4040

4141
return $crud;

0 commit comments

Comments
 (0)