From 6f1d40b56dabf7b44ee804328f5007cfd6dd51da Mon Sep 17 00:00:00 2001 From: Anatoly Nekhay Date: Sat, 26 Oct 2024 03:14:40 +0200 Subject: [PATCH] v3 --- src/Middleware/WhitespaceTrimmingMiddleware.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(...);