diff --git a/src/Middleware/WhitespaceTrimmingMiddleware.php b/src/Middleware/WhitespaceTrimmingMiddleware.php index 66a3d9ef..98740297 100644 --- a/src/Middleware/WhitespaceTrimmingMiddleware.php +++ b/src/Middleware/WhitespaceTrimmingMiddleware.php @@ -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(...);