Skip to content

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

Merged
michalbundyra merged 5 commits into
masterfrom
fix/60-invocation-exception-type-hint
Aug 18, 2025
Merged

fix: PHP 8.4 deprecation notice - implicit nullable parameters#61
michalbundyra merged 5 commits into
masterfrom
fix/60-invocation-exception-type-hint

Conversation

@michalbundyra

@michalbundyra michalbundyra commented Aug 18, 2025

Copy link
Copy Markdown
Member

Fixes #60

  • Drop \Exception typehint on Invocation constructor.
  • Drop callable typehin on Spy constructor.

@michalbundyra michalbundyra changed the title add tests for Invocation fix: Drop \Exception typehint on Invocation constructor to solve PHP 8.4 deprecation notice Aug 18, 2025
@michalbundyra michalbundyra added this to the 2.6.2 milestone Aug 18, 2025
@michalbundyra michalbundyra changed the title fix: Drop \Exception typehint on Invocation constructor to solve PHP 8.4 deprecation notice fix: PHP 8.4 deprecation notice - implicit nullable parameters Aug 18, 2025
@michalbundyra
michalbundyra marked this pull request as ready for review August 18, 2025 19:57
@michalbundyra
michalbundyra merged commit e134d21 into master Aug 18, 2025
14 checks passed
@michalbundyra
michalbundyra deleted the fix/60-invocation-exception-type-hint branch August 18, 2025 19:59
michalbundyra added a commit to php-mock/php-mock-phpunit that referenced this pull request 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
michalbundyra added a commit to php-mock/php-mock-phpunit that referenced this pull request Sep 23, 2025
Fixes #83

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

See also: php-mock/php-mock/pull/61
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.

Implicit nullable parameters causes deprecation warnings on PHP 8.4+

1 participant