Skip to content

Commit

Permalink
Refactor test to use new Attribute() instead of Attribute::make()
Browse files Browse the repository at this point in the history
- Ensures compatibility with all Laravel 9.0 and 9.1
  • Loading branch information
thaqebon authored and freekmurze committed Jan 31, 2025
1 parent 0affcb4 commit 9f8e5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TranslatableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ public function getNestedFieldAttribute($value)

protected function nestedDeepField(): Attribute
{
return Attribute::make(
return new Attribute(
get: fn (string $value) => ucfirst($value),
set: fn (string $value) => strtolower($value),
);
Expand Down

0 comments on commit 9f8e5d3

Please sign in to comment.