Skip to content

Commit

Permalink
v3
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Oct 26, 2024
1 parent c3ecd03 commit 6f1d40b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/WhitespaceTrimmingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class WhitespaceTrimmingMiddleware implements MiddlewareInterface
/**
* @param null|callable(string):string $trimmer
*/
public function __construct(?callable $trimmer)
public function __construct(?callable $trimmer = null)
{
$trimmer ??= trim(...);

Expand Down

0 comments on commit 6f1d40b

Please sign in to comment.