Skip to content

Commit

Permalink
Merge pull request #165 from erikn69/patch-1
Browse files Browse the repository at this point in the history
Avoid exception `rtrim() Passing null to parameter #1`
  • Loading branch information
milon authored Oct 24, 2022
2 parents a35005e + 52cde4f commit f186fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Milon/Barcode/DNS2D.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ protected function checkfile($path) {
}

public function setStorPath($path) {
$this->store_path = rtrim($path, '/' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
$this->store_path = rtrim((string) $path, '/' . DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
return $this;
}

Expand Down

0 comments on commit f186fb6

Please sign in to comment.