From 48f09738c42e28ec0ea3c2a881dcc5d7cab82bf8 Mon Sep 17 00:00:00 2001 From: Mehran Date: Mon, 26 Feb 2024 00:36:23 +0330 Subject: [PATCH] Made the phpVersion property nullable --- app/Services/Forge/ForgeSetting.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Forge/ForgeSetting.php b/app/Services/Forge/ForgeSetting.php index de576fb..926cbe9 100644 --- a/app/Services/Forge/ForgeSetting.php +++ b/app/Services/Forge/ForgeSetting.php @@ -60,7 +60,7 @@ class ForgeSetting /** * PHP version (e.g., 7.4, 8.0). */ - public string $phpVersion; + public ?string $phpVersion = null; /** * Pattern for subdomains. @@ -168,7 +168,7 @@ class ForgeSetting 'repository' => ['required'], 'branch' => ['required'], 'project_type' => ['string'], - 'php_version' => ['string'], + 'php_version' => ['nullable', 'string'], 'subdomain_pattern' => ['nullable', 'string'], 'command' => ['nullable', 'string'], 'nginx_template' => ['nullable', 'int'],