diff --git a/build/phprectorconfig.php b/build/phprectorconfig.php index 94b5b1d..801790d 100644 --- a/build/phprectorconfig.php +++ b/build/phprectorconfig.php @@ -34,12 +34,12 @@ instanceOf: true, earlyReturn: true, phpunitCodeQuality: true, + privatization: true, // carbon: false, deadCode: false, doctrineCodeQuality: false, naming: false, - privatization: false, rectorPreset: false, symfonyCodeQuality: false, symfonyConfigs: false, diff --git a/src/ZugferdPdfValidator.php b/src/ZugferdPdfValidator.php index 0b6e8a9..32869ee 100644 --- a/src/ZugferdPdfValidator.php +++ b/src/ZugferdPdfValidator.php @@ -850,7 +850,7 @@ private function performValidation(): bool $this->resetFileToValidateFilename(); - if (file_put_contents($this->resolveFileToValidateFilename(), $this->getPdfContent()) === false) { + if (file_put_contents($this->resolveFileToValidateFilename(), $this->pdfContent) === false) { $this->addToMessageBag("Cannot create temporary file which contains the PDF to validate"); return false; }