Skip to content

Commit c035a98

Browse files
author
Rihards Ščeredins
authored
Remove $value from accessor method (#7592)
1 parent c853bcc commit c035a98

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

eloquent-mutators.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ In this example, we'll define an accessor for the `first_name` attribute. The ac
4444
/**
4545
* Get the user's first name.
4646
*
47-
* @param string $value
4847
* @return \Illuminate\Database\Eloquent\Casts\Attribute
4948
*/
50-
protected function firstName($value): Attribute
49+
protected function firstName(): Attribute
5150
{
5251
return new Attribute(
5352
get: fn ($value) => ucfirst($value),

0 commit comments

Comments
 (0)