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 @@ -
config/app.phpconfig/app.php