Skip to content

Commit bcfa4a6

Browse files
committed
fix: handle nullable values in responsible attribute
1 parent 1201493 commit bcfa4a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Legacy/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Project extends Model
9999
protected function responsible(): Attribute
100100
{
101101
return Attribute::make(
102-
get: fn (string $value) => empty($value) || str_contains($value, '@') ? $value : $value.'@'.config('stufis.mail_domain'),
102+
get: fn (?string $value) => empty($value) || str_contains($value, '@') ? $value : $value.'@'.config('stufis.mail_domain'),
103103
set: fn (string $value) => empty($value) || str_contains($value, '@') ? $value : $value.'@'.config('stufis.mail_domain'),
104104
);
105105
}

0 commit comments

Comments
 (0)