Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: PHP 8.4 deprecation notice - implicit nullable parameters #86

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

Merged
michalbundyra merged 1 commit into master from fix/83
Sep 23, 2025

Conversation

@michalbundyra
Copy link
Member

@michalbundyra michalbundyra commented Sep 22, 2025

Fixes #83

Drop Closure typehint on MockDisabler constructor (compatibility class for PHPUnit 7-9 only)

See also: php-mock/php-mock/pull/61

Fixes #83
Drop `Closure` typehint on MockDisabler constructor (compatibility class for PHPUnit 7-9 only)
See also: php-mock/php-mock/pull/61 
Copy link
Member Author

@Alexander-Yi would you be able to give it a go with this change? I believe it should work.
Weird, that this deprecation notice has not been reported in our tests, as we are testing PHPUnit 9 on PHP 8.4.
I would need to check it, but can't now. So if you would be able to check and confirm if this change work I can drop a new fix release soon (in the morning?). Thanks

Copy link

@Alexander-Yi would you be able to give it a go with this change? I believe it should work. Weird, that this deprecation notice has not been reported in our tests, as we are testing PHPUnit 9 on PHP 8.4. I would need to check it, but can't now. So if you would be able to check and confirm if this change work I can drop a new fix release soon (in the morning?). Thanks

I really appreciate your prompt response. I gave it a go and it works well.

michalbundyra reacted with thumbs up emoji

@michalbundyra michalbundyra merged commit 29f90fe into master Sep 23, 2025
134 checks passed
@michalbundyra michalbundyra added this to the 2.13.1 milestone Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

2.13.1

Development

Successfully merging this pull request may close these issues.

Deprecated warning for PHP 8.4

AltStyle によって変換されたページ (->オリジナル) /