diff --git a/composer.json b/composer.json index 73dbbb0..9243264 100644 --- a/composer.json +++ b/composer.json @@ -21,13 +21,13 @@ "nette/http": "^3.0.0", "nette/security": "^3.0.0", "nettrine/orm": "^0.5.0", - "ninjify/qa": "^0.10.0", + "ninjify/qa": "^0.11.0", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan-deprecation-rules": "^0.11", - "phpstan/phpstan-nette": "^0.11", - "phpstan/phpstan-shim": "^0.11", - "phpstan/phpstan-strict-rules": "^0.11", - "phpunit/phpunit": "^8.1.0", + "phpstan/phpstan-deprecation-rules": "^0.12", + "phpstan/phpstan-nette": "^0.12", + "phpstan/phpstan": "^0.12", + "phpstan/phpstan-strict-rules": "^0.12", + "phpunit/phpunit": "^8.5|^9.5", "tracy/tracy": "^2.7.0" }, "autoload": { diff --git a/src/DI/KnpLabsBehaviorExtension.php b/src/DI/KnpLabsBehaviorExtension.php index 800905b..7a2ef2e 100644 --- a/src/DI/KnpLabsBehaviorExtension.php +++ b/src/DI/KnpLabsBehaviorExtension.php @@ -232,15 +232,17 @@ public function loadConfiguration(): void ->setAutowired(false); } - if ($config->tree !== false) { - $builder->addDefinition($this->prefix('tree')) - ->setFactory(TreeSubscriber::class, [ - $classAnalyzerDefinition, - $isRecursive, - $config->tree->nodeTrait, - ]) - ->setAutowired(false); + if ($config->tree === false) { + return; } + + $builder->addDefinition($this->prefix('tree')) + ->setFactory(TreeSubscriber::class, [ + $classAnalyzerDefinition, + $isRecursive, + $config->tree->nodeTrait, + ]) + ->setAutowired(false); } } diff --git a/tests/coverage.xml b/tests/coverage.xml index 46f75f8..3c08bd3 100644 --- a/tests/coverage.xml +++ b/tests/coverage.xml @@ -1,11 +1,12 @@ - - - - ./../src - - - - - + + + + ./../src + + + + + +