Skip to content

Commit

Permalink
Fixed documentation for search()
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Dec 5, 2023
1 parent 74a43d6 commit 541b3c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

Expand Down
2 changes: 1 addition & 1 deletion src/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 541b3c6

Please sign in to comment.