Skip to content

Commit

Permalink
fix PHP 8.4 deprecation error (implicitly nullable parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbolli authored and oscarotero committed Nov 21, 2024
1 parent 9939f5b commit 1b35e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TrailingSlash.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(bool $trailingSlash = false)
/**
* Whether returns a 301 response to the new path.
*/
public function redirect(ResponseFactoryInterface $responseFactory = null): self
public function redirect(?ResponseFactoryInterface $responseFactory = null): self
{
$this->responseFactory = $responseFactory ?: Factory::getResponseFactory();

Expand Down

0 comments on commit 1b35e69

Please sign in to comment.