Skip to content

Commit

Permalink
Add string cast for constant
Browse files Browse the repository at this point in the history
I think maybe the polyfill has this as a mixed type for some reason?
  • Loading branch information
caendesilva committed Jul 17, 2024
1 parent caf5100 commit 7b15b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framework/src/Console/Commands/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected function checkArgvForOption(string $name): ?string

protected function openInBrowser(string $path = '/'): void
{
$binary = $this->getOpenCommand(PHP_OS_FAMILY);
$binary = $this->getOpenCommand((string) PHP_OS_FAMILY);

$command = sprintf('%s http://%s:%d', $binary, $this->getHostSelection(), $this->getPortSelection());
$command = rtrim("$command/$path", '/');
Expand Down

0 comments on commit 7b15b31

Please sign in to comment.