mirror of
https://github.com/flarum/core.git
synced 2025-08-07 08:56:38 +02:00
feat: STUBS!
This commit is contained in:
48
php-packages/phpstan/stubs/Illuminate/Helpers.stub
Normal file
48
php-packages/phpstan/stubs/Illuminate/Helpers.stub
Normal file
@@ -0,0 +1,48 @@
|
||||
<?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 = [])
|
||||
{
|
||||
}
|
Reference in New Issue
Block a user