Skip to content

Commit

Permalink
Drop unnecessary PREG_OFFSET_CAPTURE
Browse files Browse the repository at this point in the history
No need to use `PREG_OFFSET_CAPTURE` here.
  • Loading branch information
GreyWyvern committed Mar 25, 2024
1 parent e826d4d commit 45f7e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Smalot/PdfParser/RawData/RawDataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ protected function getXrefData(string $pdfData, int $offset = 0, array $xref = [
} elseif (strpos($pdfData, 'xref', $bumpOffset) == $bumpOffset) {
// Already pointing at the xref table
$startxref = $bumpOffset;
} elseif (preg_match('/([0-9]+[\s][0-9]+[\s]obj)/i', $pdfData, $matches, \PREG_OFFSET_CAPTURE, $bumpOffset)) {
} elseif (preg_match('/([0-9]+[\s][0-9]+[\s]obj)/i', $pdfData, $matches, 0, $bumpOffset)) {
// Cross-Reference Stream object
$startxref = $bumpOffset;
} else {
Expand Down

0 comments on commit 45f7e53

Please sign in to comment.