Skip to content

Commit

Permalink
Merge pull request #30 from shotstack/remove-strict-fps
Browse files Browse the repository at this point in the history
Fix FPS strict check which is confused by double and integer
  • Loading branch information
jeffski authored Oct 3, 2023
2 parents 96e6168 + 1fa19cb commit 750da91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 750da91

Please sign in to comment.