Skip to content

Commit 76d9de8

Browse files
author
nix
committed
fixed some API docs
1 parent f716312 commit 76d9de8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Arr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public static function kvjoin(iterable $data, string $sep = ', ', string $kv_sep
9999
* Returns the first mapping (element) of an array as key and value in an array, or null/null if the array is empty.
100100
* Array destructuring is a very convenient way to handle the result: `['k' => $key, 'v' => $value] = Arr::first($array)`
101101
* @param iterable $iterable the source iterable
102-
* @return array{k: string|int|null, v: mixed} ['k' => <key>/null, 'v' => <value>/null]
102+
* @return array{k: string|int|null, v: mixed} ['k' => &lt;key&gt;/null, 'v' => &lt;value&gt;/null]
103103
* @since 1.0
104104
* @phpstan-ignore missingType.iterableValue
105105
*/
@@ -115,7 +115,7 @@ public static function first(iterable $iterable): array
115115
* Array destructuring is a very convenient way to handle the result: `['k' => $key, 'v' => $value] = Arr::find($array, 'key1', 'key2')`
116116
* @param array $array the source array
117117
* @param string|int ...$ks the keys
118-
* @return array{k: string|int|null, v: mixed} ['k' => <key>/null, 'v' => <value>/null]
118+
* @return array{k: string|int|null, v: mixed} ['k' => &lt;key&gt;/null, 'v' => &lt;value&gt;/null]
119119
* @since 1.0
120120
* @phpstan-ignore missingType.iterableValue
121121
*/

src/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public static function map_nots(mixed $v, ?callable $fn = null, bool $null_on_no
6565
* @param bool $func whether $fn === null means falsy too
6666
* @param bool $null whether null is a falsy value
6767
* @param bool $false whether false is a falsy value
68-
* @param bool $empty whether an empty string is a falsy value
69-
* @param bool $zero whether 0 (zero) is a falsy value
68+
* @param bool $empty whether an empty string and an empty array are falsy values
69+
* @param bool $zero whether 0 and 0.0 are falsy values
7070
* @return U|T|null the possibly mapped value
7171
* @since 1.0
7272
*/

0 commit comments

Comments
 (0)