Skip to content

Commit c132676

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

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- "8.1"
2727
- "8.2"
2828
- "8.3"
29+
- "8.4"
2930
operating-system:
3031
- "ubuntu-latest"
3132

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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)