mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -13,13 +13,14 @@
|
||||
*/
|
||||
class DeploymentScript extends AbstractModel
|
||||
{
|
||||
/** @use HasFactory<\Database\Factories\DeploymentScriptFactory> */
|
||||
use HasFactory;
|
||||
|
||||
protected static function boot(): void
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::saving(function ($deploymentScript) {
|
||||
static::saving(function ($deploymentScript): void {
|
||||
$deploymentScript->content = str_replace("\r\n", "\n", $deploymentScript->content);
|
||||
});
|
||||
}
|
||||
@ -34,6 +35,9 @@ protected static function boot(): void
|
||||
'site_id' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return BelongsTo<Site, covariant $this>
|
||||
*/
|
||||
public function site(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Site::class);
|
||||
|
Reference in New Issue
Block a user