From 9f8e5d32abdbff0443b6bb2a6505a9480fe9cf3e Mon Sep 17 00:00:00 2001 From: Omar Alnabris Date: Mon, 27 Jan 2025 18:55:49 +0300 Subject: [PATCH] Refactor test to use new Attribute() instead of Attribute::make() - Ensures compatibility with all Laravel 9.0 and 9.1 --- tests/TranslatableTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TranslatableTest.php b/tests/TranslatableTest.php index 2735d1e..6ed891e 100644 --- a/tests/TranslatableTest.php +++ b/tests/TranslatableTest.php @@ -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), );