Skip to content

Comments

PHP 8.4 Deprecation: Implicitly marking parameter $target_screen as nullable is deprecated.#8

Merged
Chrico merged 2 commits intoinpsyde:masterfrom
Soean:php84_fix
Aug 15, 2025
Merged

PHP 8.4 Deprecation: Implicitly marking parameter $target_screen as nullable is deprecated.#8
Chrico merged 2 commits intoinpsyde:masterfrom
Soean:php84_fix

Conversation

@Soean
Copy link
Contributor

@Soean Soean commented Dec 2, 2024

What kind of change does this PR introduce?
When I run PHP 8.4, I get a deprecation message. This PR fixes it.

What is the current behavior?

PHP Deprecated: MetaboxOrchestra\AdminNotices::add(): Implicitly marking parameter $target_screen as nullable is deprecated, the explicit nullable type must be used instead in /vendor/inpsyde/metabox-orchestra/src/AdminNotices.php on line 77

What is the new behavior (if this is a feature change)?
Adds explicit nullable type to target_screen which fixes the warning. Nullables is allowed since PHP 7.1, this package supports PHP >=7.2.

…ing parameter $target_screen as nullable is deprecated, the explicit nullable type must be used instead
@Soean
Copy link
Contributor Author

Soean commented Aug 15, 2025

@Chrico How can we get this change in? 🙂

@Chrico Chrico requested review from Chrico and gmazzap August 15, 2025 06:53
@Chrico
Copy link
Member

Chrico commented Aug 15, 2025

@Chrico How can we get this change in? 🙂

Ui, PR from December 2024. 😶 I did not see that PR. Sorry about that! ☕

The PR looks good to me. Could you please merge master into your PR branch, so that we can also execute php-qa.yml for pull requests? I just added support for PHP 8.3 and 8.4 in the test matrix. :-) @Soean

@Chrico Chrico merged commit b36a2e8 into inpsyde:master Aug 15, 2025
16 checks passed
@Soean Soean deleted the php84_fix branch August 15, 2025 07:34
@Chrico
Copy link
Member

Chrico commented Aug 15, 2025

@Soean
Copy link
Contributor Author

Soean commented Aug 15, 2025

Nice, that was quick. Thanks! 🙂

@Chrico
Copy link
Member

Chrico commented Aug 15, 2025

Nice, that was quick. Thanks! 🙂

Considering that this PR is from December 2024...I guess the definition of "quick" varies 😬 Sorry again for keeping you waiting!

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.

2 participants