Skip to content

Address php8.4 deprecation of with type hinting on NULL#3508

Closed
eileenmcnaughton wants to merge 1 commit intodompdf:masterfrom
eileenmcnaughton:patch-1
Closed

Address php8.4 deprecation of with type hinting on NULL#3508
eileenmcnaughton wants to merge 1 commit intodompdf:masterfrom
eileenmcnaughton:patch-1

Conversation

@eileenmcnaughton
Copy link
Copy Markdown

This avoids the following php 8.4 deprecation

Dompdf\Options::__construct(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead

This avoids the following php 8.4 deprecation 

Dompdf\Options::__construct(): Implicitly marking parameter $attributes as nullable is deprecated, the explicit nullable type must be used instead
@bsweeney
Copy link
Copy Markdown
Member

Do you have plans to address the other instances where this notice arises? 3521 has a list of problematic functions.

@eileenmcnaughton
Copy link
Copy Markdown
Author

@bsweeney we picked this one up in our unit tests - it fails straight up on 8.4 - I'm assuming we will hit a bunch more in our tests once our tests get past this & if not fixed by then would put up more PRs but I'm not actively looking into 8.4 this month

It's probably worth merging this as is because it will likely be the first 8.4 one anyone hits & you probably want to flush out the more obscure ones

@bsweeney
Copy link
Copy Markdown
Member

bsweeney commented Oct 15, 2024

I've already patched up what I found based on running my own local tests as well as searching using the regex provided in 3521. I just wanted to know if you intended to fix the rest before I make any commits.

@eileenmcnaughton
Copy link
Copy Markdown
Author

@bsweeney ok great thanks. I won't be looking at this further in the short-term

@eileenmcnaughton
Copy link
Copy Markdown
Author

@bsweeney just checking in on this - did you have some commits you were going to push up?

@bsweeney
Copy link
Copy Markdown
Member

bsweeney commented Nov 7, 2024

Apologies things have been ... hectic. I will try to get to it over the next week.

@eileenmcnaughton
Copy link
Copy Markdown
Author

thanks @bsweeney appreciate it - it sounds like the work is mostly done, just not pushed up, from prior comments

@bsweeney bsweeney linked an issue Nov 9, 2024 that may be closed by this pull request
@swiffer swiffer mentioned this pull request Nov 23, 2024
@bsweeney
Copy link
Copy Markdown
Member

#3521 beat me to the change so I'm closing this PR in favor of that one. Thanks for surfacing the compatibility issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants