Fix phpDoc errors

This commit is contained in:
Sebastian Meyer 2024-02-11 22:31:59 +01:00
parent 6cb08ef7a3
commit 0467b8bad9
3 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ namespace OCC\Basics\ErrorHandlers;
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
* `ErrorException`. It respects the `error_reporting` directive.
@ -48,7 +48,7 @@ class ThrowErrorException
*
* @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(
int $errno = E_USER_ERROR,

View File

@ -26,7 +26,7 @@ namespace OCC\Basics\ErrorHandlers;
use Throwable;
/**
* Trigger errors for uncaught exceptions.
* Triggers errors for uncaught exceptions.
*
* If registered as exception handler, this catches an uncaught exception and
* converts it into an internal PHP error of severity `E_USER_ERROR`.

View File

@ -36,7 +36,7 @@ use Countable;
* @api
*
* @template TValue of mixed
* @implements Countable
* @implements Countable<TValue>
* @phpstan-require-implements Countable
*/
trait CountableTrait