Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions tests/phpstan-config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use yii\db\{ActiveQuery, ActiveRecord};
use Yii2\Extensions\NestedSets\{NestedSetsBehavior, NestedSetsQueryBehavior};

return [
'behaviors' => [
ActiveRecord::class => [
NestedSetsBehavior::class,
],
ActiveQuery::class => [
NestedSetsQueryBehavior::class,
],
],
];