From 1e18e1458125fbdf78790d00a314e1f2f63287f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Bundyra?= Date: Mon, 22 Sep 2025 22:02:09 +0100 Subject: [PATCH] fix: PHP 8.4 deprecation notice - implicit nullable parameters Fixes #83 Drop `Closure` typehint on MockDisabler constructor (compatibility class for PHPUnit 7-9 only) See also: php-mock/php-mock/pull/61 --- classes/MockDisablerPHPUnit7.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/MockDisablerPHPUnit7.php b/classes/MockDisablerPHPUnit7.php index 41def45..c3d78f6 100644 --- a/classes/MockDisablerPHPUnit7.php +++ b/classes/MockDisablerPHPUnit7.php @@ -35,7 +35,7 @@ class MockDisablerPHPUnit7 extends BaseTestListener * @param Deactivatable $deactivatable The function mocks. * @param Closure|null $callback The callback to execute after the test. */ - public function __construct(Deactivatable $deactivatable, Closure $callback = null) + public function __construct(Deactivatable $deactivatable, $callback = null) { $this->deactivatable = $deactivatable; $this->callback = $callback;