Skip to content

Commit

Permalink
staudenmeir#259: Updated attribute names
Browse files Browse the repository at this point in the history
  • Loading branch information
tylernathanreed authored Sep 6, 2024
1 parent 5c0ba5c commit 5ab4447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Tree/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function videosAndSelf(): MorphToManyOfDescendants
/**
* @return Attribute<string,never>
*/
protected function slugPath(): Attribute
protected function displayPath(): Attribute

Check failure on line 221 in tests/Tree/Models/User.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3, stable)

Method Staudenmeir\LaravelAdjacencyList\Tests\Tree\Models\User::displayPath() has invalid return type Staudenmeir\LaravelAdjacencyList\Tests\Tree\Models\Attribute.

Check failure on line 221 in tests/Tree/Models/User.php

View workflow job for this annotation

GitHub Actions / phpstan (8.3, stable)

Method Staudenmeir\LaravelAdjacencyList\Tests\Tree\Models\User::displayPath() has invalid return type Staudenmeir\LaravelAdjacencyList\Tests\Tree\Models\Attribute.
{
return Attribute::get(
fn (): string => (string) $this->ancestorsAndSelf
Expand All @@ -232,7 +232,7 @@ protected function slugPath(): Attribute
/**
* @return Attribute<string,never>
*/
protected function reverseSlugPath(): Attribute
protected function reverseDisplayPath(): Attribute
{
return Attribute::get(
fn (): string => (string) $this->ancestorsAndSelf
Expand Down

0 comments on commit 5ab4447

Please sign in to comment.