diff --git a/app/Controllers/BaseController.php b/app/Controllers/BaseController.php index 0328f140bfdf..122db5f9a9f2 100644 --- a/app/Controllers/BaseController.php +++ b/app/Controllers/BaseController.php @@ -19,7 +19,7 @@ * * For security be sure to declare any new methods as protected or private. */ -class BaseController extends Controller +abstract class BaseController extends Controller { /** * Instance of the main Request object. diff --git a/phpstan-baseline.neon.dist b/phpstan-baseline.neon.dist index f2cad007146e..8d8834cb57dc 100644 --- a/phpstan-baseline.neon.dist +++ b/phpstan-baseline.neon.dist @@ -485,11 +485,6 @@ parameters: count: 1 path: system/Debug/Exceptions.php - - - message: "#^Parameter \\#4 \\$replacement of function array_splice expects array\\|string, true given\\.$#" - count: 1 - path: system/Debug/Exceptions.php - - message: "#^Property CodeIgniter\\\\Debug\\\\Exceptions\\:\\:\\$formatter \\(CodeIgniter\\\\Format\\\\FormatterInterface\\) in isset\\(\\) is not nullable\\.$#" count: 1 diff --git a/system/Config/Routes.php b/system/Config/Routes.php index 4ace952bc3c8..14735e27432f 100644 --- a/system/Config/Routes.php +++ b/system/Config/Routes.php @@ -21,11 +21,6 @@ * already loaded up and ready for us to use. */ -// Prevent access to BaseController -$routes->add('BaseController(:any)', static function () { - throw PageNotFoundException::forPageNotFound(); -}); - // Prevent access to initController method $routes->add('(:any)/initController', static function () { throw PageNotFoundException::forPageNotFound();