Skip to content

Commit 1db4b5d

Browse files
authored
Properly cast to string
1 parent fe924e8 commit 1db4b5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Http/Requests/UpdateProfileRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ public function rules()
1818

1919
public function bio(): string
2020
{
21-
return $this->get('bio', '');
21+
return (string) $this->get('bio', '');
2222
}
2323

2424
public function name(): string
2525
{
26-
return $this->get('name');
26+
return (string) $this->get('name');
2727
}
2828

2929
public function email(): string
3030
{
31-
return $this->get('email');
31+
return (string) $this->get('email');
3232
}
3333

3434
public function username(): string
3535
{
36-
return $this->get('username');
36+
return (string) $this->get('username');
3737
}
3838
}

0 commit comments

Comments
 (0)