Skip to content

Commit

Permalink
Merge pull request #423 from sohailahmad07/fixDomainException
Browse files Browse the repository at this point in the history
if version is null the get the php fpm version first which fix the do…
  • Loading branch information
jmarcher authored Dec 1, 2023
2 parents 2bb9629 + 846deac commit 986fba8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli/Valet/PhpFpm.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,17 @@ public function getVersion($real = false)

return $version;
}

/**
* Get the possible PHP FPM service names.
*
* @return array
*/
public function getFpmServiceNames()
{
if(is_null($this->version)) {
$this->version = $this->getPhpVersion();
}
return [
"php-fpm",
"php-fpm{$this->version}",
Expand Down Expand Up @@ -417,7 +420,7 @@ public function fpmServiceName()

return new DomainException('Unable to determine PHP service name.');
}

/**
* Get FPM sock file name for a given PHP version.
*
Expand Down

0 comments on commit 986fba8

Please sign in to comment.