Skip to content

Commit

Permalink
[FIX] #253 Fixed issues regarding the use of is_file
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Feb 3, 2025
1 parent 6705131 commit 2283f2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ZugferdDocumentPdfBuilderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ protected function extractInvoiceInformations(): array
protected function isFile($pdfData): bool
{
try {
return is_file($pdfData);
return @is_file($pdfData);
} catch (Throwable $throwable) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ZugferdDocumentPdfMerger.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected function getXmlAttachmentXmpName(): string
protected function xmlDataIsFile(): bool
{
try {
return is_file($this->xmlDataOrFilename);
return @is_file($this->xmlDataOrFilename);
} catch (Throwable $throwable) {
return false;
}
Expand Down

0 comments on commit 2283f2e

Please sign in to comment.