From ff214349a81792907c14fe9eb80063e12879981d Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Sat, 30 May 2026 13:54:41 +0200 Subject: [PATCH] sync cakephp/app changes --- .github/workflows/ci.yml | 2 +- phpstan.neon | 1 - src/Application.php | 2 +- templates/Pages/home.php | 11 +++++++++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f3bf5..95ab131 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,7 +66,7 @@ jobs: php-version: '8.2' extensions: mbstring, intl coverage: none - tools: cs2pr, phpstan:1.12 + tools: cs2pr, phpstan:2.2 - name: Composer install uses: ramsey/composer-install@v4 diff --git a/phpstan.neon b/phpstan.neon index fbe1392..f8b81c5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,6 @@ parameters: level: 8 treatPhpDocTypesAsCertain: false - checkGenericClassInNonGenericObjectType: false bootstrapFiles: - config/bootstrap.php paths: diff --git a/src/Application.php b/src/Application.php index 9ca8b6b..da15e92 100644 --- a/src/Application.php +++ b/src/Application.php @@ -54,7 +54,7 @@ public function bootstrap(): void // The bake plugin requires fallback table classes to work properly FactoryLocator::add( 'Table', - (new TableLocator())->allowFallbackClass(false), // @phpstan-ignore argument.type + (new TableLocator())->allowFallbackClass(false), ); } } diff --git a/templates/Pages/home.php b/templates/Pages/home.php index 77843b3..18b8b4c 100644 --- a/templates/Pages/home.php +++ b/templates/Pages/home.php @@ -147,9 +147,9 @@ -
  • The engine is being used for core caching. To change the config edit config/app.php
  • +
  • The engine is being used for translations caching. To change the config edit config/app.php
  • -
  • Your cache is NOT working. Please check the settings in config/app.php
  • +
  • Your translations cache is NOT working. Please check the settings in config/app.php
  • @@ -165,6 +165,13 @@
  • CakePHP is NOT able to connect to the database.
  • + + + +
  • The engine is being used for database schema caching. To change the config edit config/app.php
  • + +
  • Your database schema cache is NOT working. Please check the settings in config/app.php
  • +