You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param array $array The array that should be searched
1442
1442
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, the value is returned from `find()` and the callback will not be called for further elements
1443
-
*
1443
+
*
1444
1444
* @return mixed Returns the value of the first element for which the `$predicate` callback returns true. If no matching element is found the function returns `null`
@@ -1457,7 +1457,7 @@ public static function find(array $array, Closure $predicate): mixed
1457
1457
/**
1458
1458
* @param array The array that should be searched
1459
1459
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, the key is returned from `findKey()` and the callback will not be called for further elements
1460
-
*
1460
+
*
1461
1461
* @return string|int|null Returns the key of the first element for which the `$predicate` callback returns `true`. If no matching element is found the function returns `null`
@@ -1474,7 +1474,7 @@ public static function findKey(array $array, Closure $predicate): string|int|nul
1474
1474
/**
1475
1475
* @param array The array that should be searched
1476
1476
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns truthy value, `true` is returned from `any()` and the callback will not be called for further elements
1477
-
*
1477
+
*
1478
1478
* @return bool Returns `true`, if one element for which predicate callback returns truthy value. Otherwise the function returns `false`
@@ -1491,7 +1491,7 @@ public static function any(array $array, Closure $predicate): bool
1491
1491
/**
1492
1492
* @param array The array that should be searched
1493
1493
* @param Closure $predicate The predicate callback to call to check each element. The first parameter contains the value, the second parameter contains the corresponding key. If this function returns falsy value, `false` is returned from `all()` and the callback will not be called for further elements
1494
-
*
1494
+
*
1495
1495
* @return bool Returns `false`, if one element for which predicate callback returns truthy value. Otherwise the function returns `false`
0 commit comments