Skip to content

Commit

Permalink
Fix client.php: file_exists inside exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
nxu authored Apr 12, 2019
1 parent 8903547 commit 862b5e5
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 862b5e5

Please sign in to comment.