From 862b5e5f64d7a3371a9f1691996f96f231cfa89c Mon Sep 17 00:00:00 2001 From: Zsolt Fekete Date: Fri, 12 Apr 2019 11:25:22 +0200 Subject: [PATCH] Fix client.php: file_exists inside exists() --- src/Client/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client/Client.php b/src/Client/Client.php index c59c2b2..a6879f9 100644 --- a/src/Client/Client.php +++ b/src/Client/Client.php @@ -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]!"); } } @@ -1537,4 +1537,4 @@ public function getReceiptByReceiptNumberOrFail($receiptNumber, $withoutPdf = fa return new Receipt($head, $items, $payments); } -} \ No newline at end of file +}