@@ -50,6 +50,7 @@ |
||
| 50 | 50 | * Merge current items and items of given collections into a new one. |
| 51 | 51 | * |
| 52 | 52 | * @param CollectionInterface ...$collections The collections to merge. |
| 53 | + * @param CollectionInterface[] $collections |
|
| 53 | 54 | * |
| 54 | 55 | * @throws \InvalidArgumentException if any of the given collections are not of the same type |
| 55 | 56 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param array<mixed> $array |
| 31 | 31 | * |
| 32 | - * @return int|string|null |
|
| 32 | + * @return integer|null |
|
| 33 | 33 | */ |
| 34 | 34 | function array_key_first(array $array) |
| 35 | 35 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param array<mixed> $array |
| 47 | 47 | * |
| 48 | - * @return int|string|null |
|
| 48 | + * @return null|integer |
|
| 49 | 49 | */ |
| 50 | 50 | function array_key_last(array $array) |
| 51 | 51 | { |
@@ -82,32 +82,32 @@ |
||
| 82 | 82 | \gettype($value) === (self::$typeMapping[$type] ?? $type) |
| 83 | 83 | || |
| 84 | 84 | ( |
| 85 | - $type === 'scalar' |
|
| 85 | + $type === 'scalar' |
|
| 86 | 86 | && |
| 87 | 87 | \is_scalar($value) |
| 88 | - ) |
|
| 88 | + ) |
|
| 89 | 89 | || |
| 90 | 90 | ( |
| 91 | - $type === 'callable' |
|
| 91 | + $type === 'callable' |
|
| 92 | 92 | && |
| 93 | 93 | \is_callable($value) |
| 94 | - ) |
|
| 94 | + ) |
|
| 95 | 95 | || |
| 96 | 96 | ( |
| 97 | - $type === 'numeric' |
|
| 97 | + $type === 'numeric' |
|
| 98 | 98 | && |
| 99 | 99 | ( |
| 100 | - \is_float($value) |
|
| 100 | + \is_float($value) |
|
| 101 | 101 | || |
| 102 | 102 | \is_int($value) |
| 103 | - ) |
|
| 104 | - ) |
|
| 103 | + ) |
|
| 104 | + ) |
|
| 105 | 105 | || |
| 106 | 106 | ( |
| 107 | - $type === 'resource' |
|
| 107 | + $type === 'resource' |
|
| 108 | 108 | && |
| 109 | 109 | \is_resource($value) |
| 110 | - ); |
|
| 110 | + ); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -1542,11 +1542,11 @@ |
||
| 1542 | 1542 | ), |
| 1543 | 1543 | \COUNT_NORMAL |
| 1544 | 1544 | ) |
| 1545 | - === |
|
| 1546 | - \count( |
|
| 1547 | - $needles, |
|
| 1548 | - \COUNT_NORMAL |
|
| 1549 | - ); |
|
| 1545 | + === |
|
| 1546 | + \count( |
|
| 1547 | + $needles, |
|
| 1548 | + \COUNT_NORMAL |
|
| 1549 | + ); |
|
| 1550 | 1550 | } |
| 1551 | 1551 | |
| 1552 | 1552 | /** |
@@ -1923,7 +1923,7 @@ discard block |
||
| 1923 | 1923 | * |
| 1924 | 1924 | * @param float|int|string $low <p>First value of the sequence.</p> |
| 1925 | 1925 | * @param float|int|string $high <p>The sequence is ended upon reaching the end value.</p> |
| 1926 | - * @param float|int $step <p>Used as the increment between elements in the sequence.</p> |
|
| 1926 | + * @param integer $step <p>Used as the increment between elements in the sequence.</p> |
|
| 1927 | 1927 | * |
| 1928 | 1928 | * @return static |
| 1929 | 1929 | * <p>(Immutable) Returns an new instance of the Arrayy object.</p> |
@@ -2715,7 +2715,7 @@ discard block |
||
| 2715 | 2715 | /** |
| 2716 | 2716 | * Get the first key from the current array. |
| 2717 | 2717 | * |
| 2718 | - * @return mixed|null |
|
| 2718 | + * @return integer|null |
|
| 2719 | 2719 | * <p>Return null if there wasn't a element.</p> |
| 2720 | 2720 | * |
| 2721 | 2721 | * @phpstan-return TKey|null |
@@ -4126,7 +4126,7 @@ discard block |
||
| 4126 | 4126 | /** |
| 4127 | 4127 | * Get the last key from the current array. |
| 4128 | 4128 | * |
| 4129 | - * @return mixed|null |
|
| 4129 | + * @return null|integer |
|
| 4130 | 4130 | * <p>Return null if there wasn't a element.</p> |
| 4131 | 4131 | * @psalm-mutation-free |
| 4132 | 4132 | */ |
@@ -4586,7 +4586,7 @@ discard block |
||
| 4586 | 4586 | /** |
| 4587 | 4587 | * Get the most used value from the array. |
| 4588 | 4588 | * |
| 4589 | - * @return mixed|null |
|
| 4589 | + * @return integer|null |
|
| 4590 | 4590 | * <p>(Immutable) Return null if there wasn't a element.</p> |
| 4591 | 4591 | * |
| 4592 | 4592 | * @phpstan-return T|null |