An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Add Stringable interface to validateOS method
Andras Bacsaie35b8a0f96b3
diff --git a/app/Models/Server.php b/app/Models/Server.phpindex 81810d5578..07714caa7d 100644--- a/app/Models/Server.php+++ b/app/Models/Server.php@@ -18,6 +18,7 @@ use Illuminate\Support\Sleep;use Spatie\SchemalessAttributes\Casts\SchemalessAttributes;use Spatie\SchemalessAttributes\SchemalessAttributesTrait;use Illuminate\Support\Str;+use Stringable;class Server extends BaseModel{@@ -333,7 +334,7 @@ class Server extends BaseModel{return $this->settings->is_logdrain_newrelic_enabled || $this->settings->is_logdrain_highlight_enabled || $this->settings->is_logdrain_axiom_enabled;}- public function validateOS(): bool | Str+ public function validateOS(): bool | Stringable{$os_release = instant_remote_process(['cat /etc/os-release'], $this);$datas = collect(explode("\n", $os_release));