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 committed Jan 20, 2023
1 parent 0dae0e8 commit 1234091
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 1234091

Please sign in to comment.