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
14 changes: 6 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
"behavior"
],
"license": "BSD-3-Clause",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.1",
"yiisoft/yii2": "dev-master|^22"
"yiisoft/yii2": "^2.0.53|^22"
},
"require-dev": {
"maglnet/composer-require-checker": "^4.1",
Expand All @@ -22,21 +20,21 @@
"phpunit/phpunit": "^10.2",
"rector/rector": "^2.0",
"symplify/easy-coding-standard": "^12.3",
"yii2-extensions/phpstan": "dev-main"
"yii2-extensions/phpstan": "^0.3.0"
},
"autoload": {
"psr-4": {
"Yii2\\Extensions\\NestedSets\\": "src"
"yii2\\extensions\\nestedsets\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Yii2\\Extensions\\NestedSets\\Tests\\": "tests"
"yii2\\extensions\\nestedsets\\tests\\": "tests"
}
},
"extra": {
"branch-alias": {
"dev-main": "1.0.x-dev"
"dev-main": "0.1.x-dev"
}
},
"config": {
Expand All @@ -50,7 +48,7 @@
"check-dependencies": "./vendor/bin/composer-require-checker check",
"ecs": "./vendor/bin/ecs --fix",
"rector": "./vendor/bin/rector process src",
"static": "./vendor/bin/phpstan analyse src --memory-limit=512M",
"static": "./vendor/bin/phpstan --memory-limit=512M",
"tests": "./vendor/bin/phpunit"
},
"repositories": [
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ parameters:

paths:
- src
- tests

tmpDir: %currentWorkingDirectory%/runtime

Expand Down
6 changes: 3 additions & 3 deletions src/NestedSetsBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yii2\Extensions\NestedSets;
namespace yii2\extensions\nestedsets;

use LogicException;
use yii\base\{Behavior, NotSupportedException};
Expand Down Expand Up @@ -30,9 +30,9 @@
* - Query for parents, children, leaves, previous and next siblings.
* - Supports custom attribute names for left, right, depth, and tree columns.
*
* @template T of ActiveRecord
* @phpstan-template T of ActiveRecord
*
* @extends Behavior<T>
* @phpstan-extends Behavior<T>
*
* @property int $depth
* @property int $lft
Expand Down
6 changes: 3 additions & 3 deletions src/NestedSetsQueryBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yii2\Extensions\NestedSets;
namespace yii2\extensions\nestedsets;

use LogicException;
use yii\base\Behavior;
Expand All @@ -26,9 +26,9 @@
* - Query for root nodes in a nested set.
* - Supports custom left, right, and tree attribute names as defined in the model.
*
* @template T of ActiveQuery
* @phpstan-template T of ActiveQuery
*
* @extends Behavior<T>
* @phpstan-extends Behavior<T>
*
* @copyright Copyright (C) 2023 Terabytesoftw.
* @license https://opensource.org/license/bsd-3-clause BSD 3-Clause License.
Expand Down
Loading