Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] fix: make compatible with FPDF #2672

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

backportbot-libresign[bot]
Copy link

Backport of PR #2671

I identified an edge case parsing a PDF generated with FPDF. The MediaBox don't exists at page scope and was necessary to get from document scope.

Signed-off-by: Vitor Mattos <vitor@php.rio>
```
ERROR: InvalidPassByReference - lib/Service/PdfParserService.php:76:22 - Parameter 1 of reset expects a variable (see https://psalm.dev/102)
				$details = reset($pdf->getObjectsByType('Pages'))->getHeader()->getDetails();
```

Signed-off-by: Vitor Mattos <vitor@php.rio>
@backportbot-libresign backportbot-libresign bot added this to the Next Release (28) milestone Apr 5, 2024
@vitormattos vitormattos merged commit 75b8a1e into stable28 Apr 5, 2024
89 checks passed
@vitormattos vitormattos deleted the backport/2671/stable28 branch April 5, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant