Skip to content

Commit 0359cf1

Browse files
committed
Include php-cs check
1 parent 57addc0 commit 0359cf1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
"psalm": "./vendor/bin/psalm --no-progress --show-info=true",
5353
"statics": [
5454
"@phpstan",
55-
"@psalm"
55+
"@psalm",
56+
"@php-cs-try"
5657
],
5758
"test": [
5859
"@statics",

src/Business/Response/ResponseCallback.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ public function __invoke(): Response
5151
$classMethod = $controller[1] ?? $this->snakeToCamel($this->route->getName() ?? '');
5252
}
5353

54-
/*
55-
* @psalm-suppress RedundantConditionGivenDocblockType
56-
* @psalm-suppress PossiblyNullArgument
57-
*/
54+
/* @psalm-suppress RedundantConditionGivenDocblockType */
5855
if (!\is_object($classController)) {
56+
/** @psalm-suppress PossiblyNullArgument */
5957
$classController = $this->autowireHelper->autowire($classController)();
6058
}
6159

0 commit comments

Comments
 (0)