From 99fbbc9c776624a65adde50f538006788d627737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 18 Dec 2023 11:45:45 +0100 Subject: [PATCH 1/2] update docBlock --- composer.json | 2 +- phpstan.neon | 1 - src/ConvertToPages.php | 2 +- src/ConvertToPagesInterface.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index bf951e2..64db483 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "laminas/laminas-servicemanager": "^3.22.1", "mimmi20/coding-standard": "^5.2.2", "mimmi20/mezzio-generic-authorization": "^3.0.3", - "mimmi20/mezzio-navigation": "^3.0.0", + "mimmi20/mezzio-navigation": "^3.0.1", "phpstan/extension-installer": "^1.3.1", "phpstan/phpstan": "^1.10.50", "phpstan/phpstan-deprecation-rules": "^1.1.4", diff --git a/phpstan.neon b/phpstan.neon index b811668..0348a73 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -96,4 +96,3 @@ parameters: ignoreErrors: - '~Parameter #1 \$options of method Mimmi20\\Mezzio\\Navigation\\Page\\PageFactoryInterface::factory\(\) expects array\|bool\|string>, array\|string> given~' - - '~is always true~' diff --git a/src/ConvertToPages.php b/src/ConvertToPages.php index ee8f0dc..9cba416 100644 --- a/src/ConvertToPages.php +++ b/src/ConvertToPages.php @@ -42,7 +42,7 @@ public function __construct( /** * Converts a $mixed value to an array of pages * - * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from + * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from * @param bool $recursive whether $value should be looped if it is an array or a config * * @return array diff --git a/src/ConvertToPagesInterface.php b/src/ConvertToPagesInterface.php index ec93d1d..2b1f1ca 100644 --- a/src/ConvertToPagesInterface.php +++ b/src/ConvertToPagesInterface.php @@ -23,7 +23,7 @@ interface ConvertToPagesInterface /** * Converts a $mixed value to an array of pages * - * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from + * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from * @param bool $recursive whether $value should be looped if it is an array or a config * * @return array From 91a39353b52d91a722a5dd862488160dff301a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Mon, 18 Dec 2023 12:34:02 +0100 Subject: [PATCH 2/2] fix issue --- src/ConvertToPages.php | 2 +- src/ConvertToPagesInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ConvertToPages.php b/src/ConvertToPages.php index 9cba416..f730759 100644 --- a/src/ConvertToPages.php +++ b/src/ConvertToPages.php @@ -43,7 +43,7 @@ public function __construct( * Converts a $mixed value to an array of pages * * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from - * @param bool $recursive whether $value should be looped if it is an array or a config + * @param bool $recursive whether $value should be looped if it is an array or a config * * @return array * diff --git a/src/ConvertToPagesInterface.php b/src/ConvertToPagesInterface.php index 2b1f1ca..4dffc9a 100644 --- a/src/ConvertToPagesInterface.php +++ b/src/ConvertToPagesInterface.php @@ -24,7 +24,7 @@ interface ConvertToPagesInterface * Converts a $mixed value to an array of pages * * @param AbstractContainer|AbstractPage|ContainerInterface|int|iterable|string>|PageInterface|string $mixed mixed value to get page(s) from - * @param bool $recursive whether $value should be looped if it is an array or a config + * @param bool $recursive whether $value should be looped if it is an array or a config * * @return array *