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

Commit a56b06a

Browse files
phpstan level 5
1 parent f59e2c0 commit a56b06a

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@
5757
"require-dev": {
5858
"doctrine/doctrine-fixtures-bundle": "^3.4",
5959
"friendsofphp/php-cs-fixer": "^3.6",
60+
"phpstan/extension-installer": "^1.1",
6061
"phpstan/phpstan": "^1",
62+
"phpstan/phpstan-doctrine": "^1.2",
63+
"phpstan/phpstan-symfony": "^1.1",
6164
"rector/rector": "^0.12.13",
6265
"roave/security-advisories": "dev-latest",
6366
"squizlabs/php_codesniffer": "^3.6",

phpstan.neon

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
parameters:
2-
level: 3
2+
level: 5
33
paths:
44
- src
55
excludePaths:
66
- src/DependencyInjection/Configuration.php
7+
ignoreErrors:
8+
- '#is never written, only read#'

src/Controller/Crud/ProcessCrudController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function configureFields(string $pageName): array
6464
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
6565
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',
6666
ProcessExecution::STATUS_SUCCESS => '<button class="btn btn-success btn-lm">success</button>',
67-
null => ''
67+
default => '<button class="btn btn-info btn-lm">unknown</button>',
6868
};
6969
}),
7070
];

src/Controller/Crud/ProcessExecutionCrudController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function configureFields(string $pageName): array
8080
ProcessExecution::STATUS_FAIL => '<button class="btn btn-danger btn-lm">failed</button>',
8181
ProcessExecution::STATUS_START => '<button class="btn btn-warning btn-lm">started</button>',
8282
ProcessExecution::STATUS_SUCCESS => '<button class="btn btn-success btn-lm">succcess</button>',
83+
default => '<button class="btn btn-info btn-lm">unknown</button>',
8384
};
8485
}),
8586
];

symfony.lock

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,18 @@
139139
"php-cs-fixer/diff": {
140140
"version": "v2.0.2"
141141
},
142+
"phpstan/extension-installer": {
143+
"version": "1.1.0"
144+
},
142145
"phpstan/phpstan": {
143146
"version": "0.12.89"
144147
},
148+
"phpstan/phpstan-doctrine": {
149+
"version": "1.2.10"
150+
},
151+
"phpstan/phpstan-symfony": {
152+
"version": "1.1.5"
153+
},
145154
"psr/cache": {
146155
"version": "1.0.1"
147156
},

0 commit comments

Comments
 (0)