mirror of
https://github.com/flarum/framework.git
synced 2025-05-09 21:12:27 +08:00
49 lines
972 B
Plaintext
49 lines
972 B
Plaintext
<?php
|
|
|
|
/**
|
|
* @template TValue
|
|
* @template TDefault
|
|
*
|
|
* @param callable(): TValue $callback
|
|
* @param TDefault|(callable(\Throwable): TDefault) $rescue
|
|
* @param bool $report
|
|
* @return TValue|TDefault
|
|
*/
|
|
function rescue(callable $callback, $rescue = null, $report = true)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @template TValue
|
|
* @param int $times
|
|
* @param callable(int): TValue $callback
|
|
* @param int $sleep
|
|
* @param null|callable(\Exception): bool $when
|
|
* @phpstan-return TValue
|
|
*
|
|
* @throws \Exception
|
|
*/
|
|
function retry($times, callable $callback, $sleep = 0, $when = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @template TValue
|
|
* @param TValue $value
|
|
* @param null|callable(TValue): void $callback
|
|
* @return mixed
|
|
*/
|
|
function tap($value, $callback = null)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param view-string|null $view
|
|
* @param \Illuminate\Contracts\Support\Arrayable|array<string, mixed> $data
|
|
* @param array<string, mixed> $mergeData
|
|
* @return mixed
|
|
*/
|
|
function view($view = null, $data = [], $mergeData = [])
|
|
{
|
|
}
|