From 05a794dddc95840b4bf701d583b9f00126b0dd47 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Thu, 26 Jun 2025 09:53:13 -0400 Subject: [PATCH] fix: Update `PHPStan` config path and add missing `phpstan-config.php` file. --- phpstan.neon | 2 +- tests/phpstan-config.php | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/phpstan-config.php diff --git a/phpstan.neon b/phpstan.neon index 384c0fc..0a3906f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -13,7 +13,7 @@ parameters: tmpDir: %currentWorkingDirectory%/runtime yii2: - config_path: %currentWorkingDirectory%/tests/config/phpstan-config.php + config_path: %currentWorkingDirectory%/tests/phpstan-config.php # Enable strict advanced checks checkImplicitMixed: true diff --git a/tests/phpstan-config.php b/tests/phpstan-config.php new file mode 100644 index 0000000..53614ab --- /dev/null +++ b/tests/phpstan-config.php @@ -0,0 +1,17 @@ + [ + ActiveRecord::class => [ + NestedSetsBehavior::class, + ], + ActiveQuery::class => [ + NestedSetsQueryBehavior::class, + ], + ], +];