Skip to content

Commit

Permalink
fix: return empty array instead of false
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Oct 20, 2023
1 parent e21d11e commit 587287f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MultiFormGoals/ProgressBar/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function __construct(array $args)
/**
* Get forms associated with Progress Bar
*
* @unreleased Return empty array instead of false
* @since 2.9.0
*/
public function getForms(): array
Expand Down Expand Up @@ -78,7 +79,7 @@ public function getForms(): array

return $query->posts;
} else {
return false;
return [];
}
}

Expand Down

0 comments on commit 587287f

Please sign in to comment.