Skip to content

Commit

Permalink
Merge pull request #5 from nXu/master
Browse files Browse the repository at this point in the history
Fix client.php: file_exists inside exists()
  • Loading branch information
sykorax authored Apr 12, 2019
2 parents 2378bb2 + 862b5e5 commit b9e4f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function ($attribute, $value, $fail) use (&$config) {
if (isset($certificate['disk'])) {

$disk = $config['certificate']['disk'];
if (!Storage::disk($disk)->exists(file_exists($value))) {
if (!Storage::disk($disk)->exists($value)) {
return $fail("The specified cert file could not be resolved from disk [$disk] at path [$value]!");
}
}
Expand Down Expand Up @@ -1537,4 +1537,4 @@ public function getReceiptByReceiptNumberOrFail($receiptNumber, $withoutPdf = fa
return new Receipt($head, $items, $payments);
}

}
}

0 comments on commit b9e4f7f

Please sign in to comment.