From 1fa19cbf2599b6b3281d5911b580bae76e93f427 Mon Sep 17 00:00:00 2001 From: Jeff Shillitto Date: Tue, 3 Oct 2023 10:48:50 +1000 Subject: [PATCH] Fix FPS strict check which is confused by double and integer --- src/Model/Output.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Output.php b/src/Model/Output.php index a22f9ce..c5bf3e9 100644 --- a/src/Model/Output.php +++ b/src/Model/Output.php @@ -609,7 +609,7 @@ public function getFps() public function setFps($fps) { $allowedValues = $this->getFpsAllowableValues(); - if (!is_null($fps) && !in_array($fps, $allowedValues, true)) { + if (!is_null($fps) && !in_array($fps, $allowedValues, false)) { throw new \InvalidArgumentException( sprintf( "Invalid value '%s' for 'fps', must be one of '%s'",