Skip to content

Commit

Permalink
Adds the missing phpBinary method
Browse files Browse the repository at this point in the history
  • Loading branch information
tonysm committed Mar 6, 2024
1 parent 56602a6 commit ace769a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Process;
use Illuminate\Support\Str;
use Symfony\Component\Process\PhpExecutableFinder;
use Tonysm\TailwindCss\Actions\AppendTailwindTag;

class InstallCommand extends Command
Expand Down Expand Up @@ -173,4 +174,9 @@ private function runFirstBuild()
$this->output->write($output);
});
}

protected function phpBinary()
{
return (new PhpExecutableFinder())->find(false) ?: 'php';
}
}

0 comments on commit ace769a

Please sign in to comment.