Skip to content

fix: using null as an array offset is deprecated, use an empty string instead - #2135

Open
ddevsr wants to merge 2 commits into
mpdf:developmentfrom
ddevsr:deprecated-array-key
Open

fix: using null as an array offset is deprecated, use an empty string instead#2135
ddevsr wants to merge 2 commits into
mpdf:developmentfrom
ddevsr:deprecated-array-key

Conversation

@ddevsr

@ddevsr ddevsr commented Sep 18, 2025

Copy link
Copy Markdown
Contributor

No description provided.

jakejackson1 added a commit to GravityPDF/mpdf that referenced this pull request Sep 7, 2026
The property was declared without a default, so it is null on any Mpdf whose
constructor has not run. ResourceWriter and BackgroundWriter both reach for it
with count(), which is a TypeError on PHP 8.

Mirrors mpdf#2135, less its SvgTest rewrite: the deprecation that PR is
named after comes from a null $gs subscript, not from $extgstates, and upstream
has since fixed that cause in 2dc0381, which gravitypdf already carries.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant