Skip to content

Commit

Permalink
Update ProcessConfiguration.php
Browse files Browse the repository at this point in the history
Fix deprecation

"Deprecated: Implicit conversion from float 1.5 to int loses precision"
  • Loading branch information
xaviermarchegay authored Feb 29, 2024
1 parent 5e0464a commit e4bfef9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Configuration/ProcessConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,8 @@ protected function sortDependencies(array $dependencies): array
return $dependencies;
}

/** @var int $midOffset */
$midOffset = \count($dependencies) / 2;
$midTaskCode = $dependencies[$midOffset];
$midTaskCode = $dependencies[(int)$midOffset];
$midTask = $this->getTaskConfiguration($midTaskCode);

$previousTasks = [];
Expand Down

0 comments on commit e4bfef9

Please sign in to comment.