Skip to content

Commit

Permalink
fix: catching empty arrays due to loose comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
adevade authored and luqven committed Jan 30, 2023
1 parent 9a60aa6 commit 68025cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function validateMinMaxTol($begin, $end, $tol) {
}

public static function validateWidths($widths) {
if ($widths == NULL) {
if (is_null($widths)) {
throw new \InvalidArgumentException("`widths` array cannot be `null`");
}

Expand Down

0 comments on commit 68025cc

Please sign in to comment.