diff --git a/src/Fields/Settings/DefaultValue.php b/src/Fields/Settings/DefaultValue.php index f3736f31..5d99e538 100644 --- a/src/Fields/Settings/DefaultValue.php +++ b/src/Fields/Settings/DefaultValue.php @@ -21,10 +21,4 @@ public function default(mixed $value): static return $this; } - - /** @deprecated This method will be removed in the next major version. Please use `default` instead. */ - public function defaultValue(mixed $value): static - { - return $this->default($value); - } } diff --git a/tests/Fields/UrlTest.php b/tests/Fields/UrlTest.php index 74e75ed4..fcd833f0 100644 --- a/tests/Fields/UrlTest.php +++ b/tests/Fields/UrlTest.php @@ -29,7 +29,7 @@ public function testDefault() $field = Url::make('Default')->default('hotpink')->get(); $this->assertSame('hotpink', $field['default_value']); - $field = Url::make('Default Value')->defaultValue('dodgerblue')->get(); + $field = Url::make('Default Value')->default('dodgerblue')->get(); $this->assertSame('dodgerblue', $field['default_value']); } }