Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -20,6 +20,7 @@
*/
class FirewallRule extends AbstractModel
{
/** @use HasFactory<\Database\Factories\FirewallRuleFactory> */
use HasFactory;
protected $fillable = [
@ -47,9 +48,13 @@ public function getStatusColor(): string
FirewallRuleStatus::DELETING => 'warning',
FirewallRuleStatus::READY => 'success',
FirewallRuleStatus::FAILED => 'danger',
default => 'secondary',
};
}
/**
* @return BelongsTo<Server, covariant $this>
*/
public function server(): BelongsTo
{
return $this->belongsTo(Server::class);