Skip to content

Commit 5f28c58

Browse files
Explicitly mark parameter as nullable
1 parent 9343fb7 commit 5f28c58

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.php-cs-fixer.dist.php

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'strict_param' => true,
4242
'ternary_to_null_coalescing' => true,
4343
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
44+
'nullable_type_declaration_for_default_null_value' => true,
4445
])
4546
->setFinder($finder)
4647
;

src/DataCollector/MercureDataCollector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(iterable $hubs)
3434
$this->hubs = $hubs;
3535
}
3636

37-
public function collect(Request $request, Response $response, \Throwable $exception = null): void
37+
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
3838
{
3939
$this->data = [
4040
'count' => 0,

0 commit comments

Comments
 (0)