Skip to content

Commit

Permalink
added supporting laravel 9.0 (#76)
Browse files Browse the repository at this point in the history
* added supporting laravel 9.0

* fixed tests
  • Loading branch information
pvsaintpe authored Feb 9, 2022
1 parent 9c65f2e commit b9fc6a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
9 changes: 2 additions & 7 deletions src/Traits/HasTreeRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
*/
trait HasTreeRelationships
{
/**
* @throws InvalidTraitInjectionClass
*/
final protected function belongsToAncestorsTree(
string $related,
string $throwRelation,
Expand All @@ -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,
Expand All @@ -49,7 +44,7 @@ final protected function belongsToDescendantsTree(
);
}

final private function belongsToTree(
final protected function belongsToTree(
string $relationClass,
string $related,
string $throwRelation,
Expand Down

0 comments on commit b9fc6a1

Please sign in to comment.