mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-07 08:52:35 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -21,7 +21,7 @@ public function getUpdatedAtByTimezoneAttribute(): string
|
||||
return $this->getDateTimeByTimezone($this->updated_at);
|
||||
}
|
||||
|
||||
public function getDateTimeByTimezone(?Carbon $value = null): ?string
|
||||
public function getDateTimeByTimezone(?Carbon $value = null): string
|
||||
{
|
||||
if ($value && auth()->user() && auth()->user()->timezone) {
|
||||
try {
|
||||
@ -30,6 +30,6 @@ public function getDateTimeByTimezone(?Carbon $value = null): ?string
|
||||
}
|
||||
}
|
||||
|
||||
return $value;
|
||||
return $value ?? '';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user