Skip to content

Commit

Permalink
Removed unnecessary property use
Browse files Browse the repository at this point in the history
  • Loading branch information
JanSlabon committed Nov 21, 2023
1 parent 3664a5a commit 744904c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PdfParser/CrossReference/CrossReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct(PdfParser $parser, $fileHeaderOffset = 0)
// sometimes the file header offset is part of the byte offsets, so let's retry by resetting it to zero.
if ($e->getCode() === CrossReferenceException::INVALID_DATA && $this->fileHeaderOffset !== 0) {
$this->fileHeaderOffset = 0;
$reader = $this->readXref($offset + $this->fileHeaderOffset);
$reader = $this->readXref($offset);
} else {
throw $e;
}
Expand Down

0 comments on commit 744904c

Please sign in to comment.