Skip to content

Commit

Permalink
Fix nullable parameters (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee authored Dec 4, 2024
2 parents d5dca6a + 4062c13 commit 51a27c1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct(
string $hookableName,
string $message = 'No supported renderer found for the hook "%s" and "%s" hookable.',
int $code = 0,
\Throwable $previous = null,
?\Throwable $previous = null,
) {
parent::__construct(
sprintf(
Expand Down
2 changes: 1 addition & 1 deletion src/TwigHooks/src/Profiler/HooksDataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(
) {
}

public function collect(Request $request, Response $response, \Throwable $exception = null): void
public function collect(Request $request, Response $response, ?\Throwable $exception = null): void
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/TwigHooks/src/Twig/Node/HookNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
?Node $context,
bool $only,
int $lineno,
string $tag = null,
?string $tag = null,
) {
parent::__construct(
[
Expand Down

0 comments on commit 51a27c1

Please sign in to comment.