Fix phpDoc errors
This commit is contained in:
parent
6cb08ef7a3
commit
0467b8bad9
|
@ -26,7 +26,7 @@ namespace OCC\Basics\ErrorHandlers;
|
||||||
use ErrorException;
|
use ErrorException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Throw internal errors as exceptions.
|
* Throws internal errors as exceptions.
|
||||||
*
|
*
|
||||||
* If registered as error handler, this converts an internal PHP error into an
|
* If registered as error handler, this converts an internal PHP error into an
|
||||||
* `ErrorException`. It respects the `error_reporting` directive.
|
* `ErrorException`. It respects the `error_reporting` directive.
|
||||||
|
@ -48,7 +48,7 @@ class ThrowErrorException
|
||||||
*
|
*
|
||||||
* @return bool Always returns FALSE when not throwing an exception
|
* @return bool Always returns FALSE when not throwing an exception
|
||||||
*
|
*
|
||||||
* @throws ErrorException
|
* @throws ErrorException if `error_reporting` is set to report the error
|
||||||
*/
|
*/
|
||||||
public function __invoke(
|
public function __invoke(
|
||||||
int $errno = E_USER_ERROR,
|
int $errno = E_USER_ERROR,
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace OCC\Basics\ErrorHandlers;
|
||||||
use Throwable;
|
use Throwable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Trigger errors for uncaught exceptions.
|
* Triggers errors for uncaught exceptions.
|
||||||
*
|
*
|
||||||
* If registered as exception handler, this catches an uncaught exception and
|
* If registered as exception handler, this catches an uncaught exception and
|
||||||
* converts it into an internal PHP error of severity `E_USER_ERROR`.
|
* converts it into an internal PHP error of severity `E_USER_ERROR`.
|
||||||
|
|
|
@ -36,7 +36,7 @@ use Countable;
|
||||||
* @api
|
* @api
|
||||||
*
|
*
|
||||||
* @template TValue of mixed
|
* @template TValue of mixed
|
||||||
* @implements Countable
|
* @implements Countable<TValue>
|
||||||
* @phpstan-require-implements Countable
|
* @phpstan-require-implements Countable
|
||||||
*/
|
*/
|
||||||
trait CountableTrait
|
trait CountableTrait
|
||||||
|
|
Loading…
Reference in New Issue