Skip to content

Commit 7ee6d0d

Browse files
authored
Collection::search does not return true (#48030)
1 parent 19b4209 commit 7ee6d0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Collections/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ public function reverse()
10781078
*
10791079
* @param TValue|(callable(TValue,TKey): bool) $value
10801080
* @param bool $strict
1081-
* @return TKey|bool
1081+
* @return TKey|false
10821082
*/
10831083
public function search($value, $strict = false)
10841084
{

src/Illuminate/Collections/LazyCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ public function reverse()
10351035
*
10361036
* @param TValue|(callable(TValue,TKey): bool) $value
10371037
* @param bool $strict
1038-
* @return TKey|bool
1038+
* @return TKey|false
10391039
*/
10401040
public function search($value, $strict = false)
10411041
{

0 commit comments

Comments
 (0)