Skip to content

Commit

Permalink
fix: cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored May 2, 2024
1 parent 6c07eb6 commit 1111a8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/ProcessHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ProcessHelper
public function __construct(
#[Autowire('%kernel.project_dir%')]
private readonly string $projectDir,
private ?float $timeout = 60
private ?float $timeout = 60,
) {}

/**
Expand Down Expand Up @@ -145,7 +145,7 @@ private function validateTimeout(?float $timeout): ?float
{
$timeout = (float) $timeout;

if (0.0 === $timeout) {
if ($timeout === 0.0) {
$timeout = null;
} elseif ($timeout < 0) {
throw new InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
Expand Down

0 comments on commit 1111a8f

Please sign in to comment.