Skip to content

Commit

Permalink
Remove defaultValue method
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 19, 2023
1 parent ebaf3ad commit 2b65179
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/Fields/Settings/DefaultValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
2 changes: 1 addition & 1 deletion tests/Fields/UrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
}

0 comments on commit 2b65179

Please sign in to comment.