From 541b3c64d9cc1f81811bb7a85dc8682e189bdd38 Mon Sep 17 00:00:00 2001 From: Aimeos Date: Tue, 5 Dec 2023 10:18:38 +0100 Subject: [PATCH] Fixed documentation for search() --- README.md | 2 +- src/Map.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4e8fe5c..6f90351 100644 --- a/README.md +++ b/README.md @@ -4207,7 +4207,7 @@ public function search( $value, $strict = true ) * @param **mixed** `$value` Item to search for * @param **bool** `$strict` TRUE if type of the element should be checked too -* @return **mixed|null** Value from map or null if not found +* @return **int|string|null** Key associated to the value or null if not found **Examples:** diff --git a/src/Map.php b/src/Map.php index e97c4a8..7ddf885 100644 --- a/src/Map.php +++ b/src/Map.php @@ -3738,7 +3738,7 @@ public function rtrim( string $chars = " \n\r\t\v\x00" ) : self * * @param mixed $value Item to search for * @param bool $strict TRUE if type of the element should be checked too - * @return mixed|null Key associated to the value or null if not found + * @return int|string|null Key associated to the value or null if not found */ public function search( $value, $strict = true ) {