Skip to content

Commit 67247bd

Browse files
#34 Quality
1 parent aaceeb3 commit 67247bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Http/ValueResolver/HttpProcessExecuteValueResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function resolve(Request $request, ArgumentMetadata $argument): iterable
3636
{
3737
$all = $request->request->all();
3838
try {
39-
if (empty($all)) {
39+
if ($all === []) {
4040
$httpProcessExecution = $this->serializer->deserialize(
4141
$request->getContent(),
4242
HttpProcessExecution::class,
@@ -57,7 +57,7 @@ public function resolve(Request $request, ArgumentMetadata $argument): iterable
5757
}
5858

5959
return [$httpProcessExecution];
60-
} catch (\Throwable $e) {
60+
} catch (\Throwable) {
6161
return [new HttpProcessExecution()];
6262
}
6363
}

0 commit comments

Comments
 (0)