diff --git a/phpstan.neon b/phpstan.neon index bd1d26c4..8356ffd0 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -30,3 +30,4 @@ parameters: exceptions: uncheckedExceptionRegexes: - '#Exception#' + treatPhpDocTypesAsCertain: false diff --git a/src/Application/ApplicationGetter.php b/src/Application/ApplicationGetter.php index cc9f4692..44952a41 100755 --- a/src/Application/ApplicationGetter.php +++ b/src/Application/ApplicationGetter.php @@ -3,6 +3,7 @@ namespace kissj\Application; use DI\Bridge\Slim\Bridge; +use DI\Container; use DI\ContainerBuilder; use kissj\Session\RedisSessionHandler; use kissj\Settings\Settings; @@ -11,6 +12,9 @@ class ApplicationGetter { + /** + * @return App + */ public function getApp( string $envPath = __DIR__.'/../../', string $envFilename = '.env', diff --git a/src/Application/Middleware.php b/src/Application/Middleware.php index 87ce201c..96ac5c0d 100755 --- a/src/Application/Middleware.php +++ b/src/Application/Middleware.php @@ -4,6 +4,7 @@ namespace kissj\Application; +use DI\Container; use kissj\ErrorHandlerGetter; use kissj\Middleware\EventInfoMiddleware; use kissj\Middleware\LocalizationResolverMiddleware; @@ -21,6 +22,10 @@ class Middleware { + /** + * @param App $app + * @return App + */ public function addMiddlewaresInto(App $app): App { // CONTENT LENGTH diff --git a/src/Application/Route.php b/src/Application/Route.php index 974a50a1..4ef9e946 100755 --- a/src/Application/Route.php +++ b/src/Application/Route.php @@ -4,6 +4,7 @@ namespace kissj\Application; +use DI\Container; use kissj\Deal\DealController; use kissj\Entry\EntryController; use kissj\ParticipantVendor\ParticipantVendorController; @@ -36,6 +37,10 @@ class Route { + /** + * @param App $app + * @return App + */ public function addRoutesInto(App $app): App { $app->redirect($this->getBasePathSlashPrefixed($app), $app->getBasePath() . '/v2/kissj/events', 301); @@ -373,6 +378,9 @@ public function addRoutesInto(App $app): App return $app; } + /** + * @param App $app + */ private function getBasePathSlashPrefixed(App $app): string { $basePath = $app->getBasePath();