From efc11036d0af77a3bef6b6f974bea2c8ba5c3757 Mon Sep 17 00:00:00 2001
From: "Hermann D. Schimpf" <hschimpf@hds-solutions.net>
Date: Wed, 1 Nov 2023 12:47:50 -0300
Subject: [PATCH] FIX: Allow float value on `SetMaxCpuUsage` message

---
 src/Internals/Commands/Runner/SetMaxCpuUsage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Internals/Commands/Runner/SetMaxCpuUsage.php b/src/Internals/Commands/Runner/SetMaxCpuUsage.php
index 456193d..ebae7d9 100644
--- a/src/Internals/Commands/Runner/SetMaxCpuUsage.php
+++ b/src/Internals/Commands/Runner/SetMaxCpuUsage.php
@@ -9,7 +9,7 @@
  */
 final class SetMaxCpuUsage extends ParallelCommandMessage {
 
-    public function __construct(int $max, bool $percentage = false) {
+    public function __construct(int | float $max, bool $percentage = false) {
         parent::__construct(sprintf('set_max_cpu_%s_usage', $percentage ? 'percentage' : 'count'), [ $max ]);
     }