From 0467b8bad91d4edc283e3cfa28ae6a8344b483d6 Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Sun, 11 Feb 2024 22:31:59 +0100 Subject: [PATCH] Fix phpDoc errors --- src/ErrorHandlers/ThrowErrorException.php | 4 ++-- src/ErrorHandlers/TriggerExceptionError.php | 2 +- src/InterfaceTraits/CountableTrait.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ErrorHandlers/ThrowErrorException.php b/src/ErrorHandlers/ThrowErrorException.php index bc2dd62..f580b6b 100644 --- a/src/ErrorHandlers/ThrowErrorException.php +++ b/src/ErrorHandlers/ThrowErrorException.php @@ -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, diff --git a/src/ErrorHandlers/TriggerExceptionError.php b/src/ErrorHandlers/TriggerExceptionError.php index 1b2a64f..98d0f02 100644 --- a/src/ErrorHandlers/TriggerExceptionError.php +++ b/src/ErrorHandlers/TriggerExceptionError.php @@ -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`. diff --git a/src/InterfaceTraits/CountableTrait.php b/src/InterfaceTraits/CountableTrait.php index d82eef9..3c231cc 100644 --- a/src/InterfaceTraits/CountableTrait.php +++ b/src/InterfaceTraits/CountableTrait.php @@ -36,7 +36,7 @@ use Countable; * @api * * @template TValue of mixed - * @implements Countable + * @implements Countable * @phpstan-require-implements Countable */ trait CountableTrait