From 202bb4b0a3d29ce9dc951bf3ae83159fa7625c5c Mon Sep 17 00:00:00 2001 From: Matthew Setter Date: Tue, 10 Dec 2024 20:12:16 +1000 Subject: [PATCH] Clean up file to match changes in recent commits --- src/Routes/Filter/RouteFilterOptions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Routes/Filter/RouteFilterOptions.php b/src/Routes/Filter/RouteFilterOptions.php index c717acc..6337d95 100644 --- a/src/Routes/Filter/RouteFilterOptions.php +++ b/src/Routes/Filter/RouteFilterOptions.php @@ -5,7 +5,7 @@ namespace Mezzio\Tooling\Routes\Filter; use function array_filter; -use function array_walk; +use function array_map; use function get_object_vars; use function in_array; use function is_array; @@ -28,7 +28,7 @@ public function __construct( } if (is_array($methods)) { - $this->methods = array_map(static fn (string $value): string => strtoupper($value), $methods); + $this->methods = array_map(static fn(string $value): string => strtoupper($value), $methods); $this->methods = $methods; } } @@ -66,7 +66,7 @@ public function getPath(): string|null return $this->path; } - public function getMethods(): array|string|null + public function getMethods(): array { return $this->methods; }