diff --git a/composer.json b/composer.json index 230fdbc..23becb0 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ "license": "MIT", "require": { "php": "^7.3|^7.4|^8.0", - "laravel/framework": "^5.8|^6.20.26|^7.0|^8.40", + "laravel/framework": "^5.8|^6.20.26|^7.0|^8.40|^9.0", "doctrine/dbal": "^2.9|^3.0", "umbrellio/laravel-pg-extensions": "^5.0", "umbrellio/laravel-common-objects": "^2.1" diff --git a/src/Traits/HasTreeRelationships.php b/src/Traits/HasTreeRelationships.php index 6674cd9..b3a2a4f 100644 --- a/src/Traits/HasTreeRelationships.php +++ b/src/Traits/HasTreeRelationships.php @@ -19,9 +19,6 @@ */ trait HasTreeRelationships { - /** - * @throws InvalidTraitInjectionClass - */ final protected function belongsToAncestorsTree( string $related, string $throwRelation, @@ -31,9 +28,7 @@ final protected function belongsToAncestorsTree( return $this->belongsToTree(BelongsToAncestorsTree::class, $related, $throwRelation, $foreignKey, $ownerKey); } - /** - * @throws InvalidTraitInjectionClass - */ + final protected function belongsToDescendantsTree( string $related, string $throwRelation, @@ -49,7 +44,7 @@ final protected function belongsToDescendantsTree( ); } - final private function belongsToTree( + final protected function belongsToTree( string $relationClass, string $related, string $throwRelation,