Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2abb92e
commit a9dd9af
Showing
14 changed files
with
312 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
/** | ||
* @template TIn of mixed | ||
* @template TReturn of mixed | ||
* | ||
* @param array<TIn> $one | ||
* @param callable(TReturn, TIn): TReturn $two | ||
* @param TReturn $three | ||
* | ||
* @return TReturn | ||
*/ | ||
function array_reduce( | ||
array $one, | ||
callable $two, | ||
$three = null | ||
) {} | ||
|
||
/** | ||
* @template TKey of array-key | ||
* @template TValue of mixed | ||
* @template TUser of mixed | ||
* | ||
* @param array<TKey, TValue> $one | ||
* @param callable(int, TKey, TUser=): mixed $two | ||
* @param TUser $three | ||
* | ||
* @return true | ||
*/ | ||
function array_walk( | ||
array &$one, | ||
callable $two, | ||
$three = null | ||
): bool {} | ||
|
||
/** | ||
* @template T of mixed | ||
* | ||
* @param array<T> $one | ||
* @param callable(T, T): int $two | ||
*/ | ||
function uasort( | ||
array &$one, | ||
callable $two | ||
): bool {} | ||
|
||
/** | ||
* @template T of mixed | ||
* | ||
* @param array<T> $one | ||
* @param callable(T, T): int $two | ||
*/ | ||
function usort( | ||
array &$one, | ||
callable $two | ||
): bool {} | ||
|
||
/** | ||
* @template T | ||
* | ||
* @param array<T, mixed> $one | ||
* @param callable(T, T): int $two | ||
*/ | ||
function uksort( | ||
array &$one, | ||
callable $two | ||
): bool {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.