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
fix nullable source
Andras Bacsaie122ee827c57
diff --git a/app/Models/Application.php b/app/Models/Application.phpindex 9306c65ff2..422e4abd72 100644--- a/app/Models/Application.php+++ b/app/Models/Application.php@@ -47,9 +47,15 @@ class Application extends BaseModelpublic function gitLocation(): Attribute{return Attribute::make(- get: fn () => is_null($this->git_commit_sha)- ? "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_branch}"- : "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_commit_sha}"+ get: function () {+ if (!is_null($this->source?->html_url) && !is_null($this->git_repository) && !is_null($this->git_branch)) {+ if (is_null($this->git_commit_sha)) {+ return "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_branch}";+ } else {+ return "{$this->source->html_url}/{$this->git_repository}/tree/{$this->git_commit_sha}";+ }+ }+ });}