From c76e262daa741868f625c6d067adec452eafc335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20D?= Date: Sun, 27 Feb 2022 19:20:14 +0100 Subject: [PATCH] * [MOD] Exceptions in docblock. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rubén D --- app/modules/web/Init.php | 5 +++++ lib/SP/Bootstrap.php | 6 ++++++ lib/SP/Core/ModuleBase.php | 3 +++ 3 files changed, 14 insertions(+) diff --git a/app/modules/web/Init.php b/app/modules/web/Init.php index f2fa060e..e681ef42 100644 --- a/app/modules/web/Init.php +++ b/app/modules/web/Init.php @@ -107,14 +107,19 @@ final class Init extends ModuleBase /** * Initialize Web App * + * @param string $controller + * * @throws \Defuse\Crypto\Exception\EnvironmentIsBrokenException * @throws \JsonException + * @throws \Psr\Container\ContainerExceptionInterface + * @throws \Psr\Container\NotFoundExceptionInterface * @throws \SP\Core\Exceptions\ConstraintException * @throws \SP\Core\Exceptions\InitializationException * @throws \SP\Core\Exceptions\QueryException * @throws \SP\Core\Exceptions\SPException * @throws \SP\Repositories\NoSuchItemException * @throws \SP\Storage\File\FileException + * @throws \Exception */ public function initialize(string $controller): void { diff --git a/lib/SP/Bootstrap.php b/lib/SP/Bootstrap.php index 40d42756..b236aa36 100644 --- a/lib/SP/Bootstrap.php +++ b/lib/SP/Bootstrap.php @@ -228,6 +228,8 @@ final class Bootstrap } /** + * @throws \Psr\Container\ContainerExceptionInterface + * @throws \Psr\Container\NotFoundExceptionInterface * @throws \SP\Core\Exceptions\CheckException * @throws \SP\Core\Exceptions\ConfigException * @throws \SP\Core\Exceptions\InitializationException @@ -362,6 +364,8 @@ final class Bootstrap /** * Cargar la configuración * + * @throws \Psr\Container\ContainerExceptionInterface + * @throws \Psr\Container\NotFoundExceptionInterface * @throws \SP\Core\Exceptions\ConfigException * @throws \SP\Services\Upgrade\UpgradeException */ @@ -375,6 +379,8 @@ final class Bootstrap /** * Comprobar la versión de configuración y actualizarla * + * @throws \Psr\Container\ContainerExceptionInterface + * @throws \Psr\Container\NotFoundExceptionInterface * @throws \SP\Services\Upgrade\UpgradeException */ private function checkConfigVersion(): void diff --git a/lib/SP/Core/ModuleBase.php b/lib/SP/Core/ModuleBase.php index 4c83e54a..408913c3 100644 --- a/lib/SP/Core/ModuleBase.php +++ b/lib/SP/Core/ModuleBase.php @@ -58,6 +58,9 @@ abstract class ModuleBase * Module constructor. * * @param ContainerInterface $container + * + * @throws \Psr\Container\ContainerExceptionInterface + * @throws \Psr\Container\NotFoundExceptionInterface */ public function __construct(ContainerInterface $container) {