Skip to content

Commit

Permalink
Format code (#7177)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Nov 28, 2024
1 parent 73d6dea commit 2758b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
use Hyperf\Collection\Collection;
use Hyperf\Contract\Arrayable;
use Hyperf\Support\Optional;

if (! function_exists('value')) {
/**
Expand Down Expand Up @@ -79,7 +81,7 @@ function with($value, ?callable $callback = null)
* @template TKey of array-key
* @template TValue
*
* @param null|\Hyperf\Contract\Arrayable<TKey, TValue>|iterable<TKey, TValue> $value
* @param null|Arrayable<TKey, TValue>|iterable<TKey, TValue> $value
* @return Collection<TKey, TValue>
*/
function collect($value = null)
Expand Down Expand Up @@ -289,7 +291,7 @@ function swoole_hook_flags(): int
*
* @param TValue $value
* @param null|(callable(TValue):TReturn) $callback
* @return ($callback is null ? \Hyperf\Support\Optional<TValue> : ($value is null ? null : TReturn))
* @return ($callback is null ? Optional<TValue> : ($value is null ? null : TReturn))
*/
function optional($value = null, ?callable $callback = null)
{
Expand Down

0 comments on commit 2758b7c

Please sign in to comment.