Skip to content

Commit 1e18e14

Browse files
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
1 parent a4c4be4 commit 1e18e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/MockDisablerPHPUnit7.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MockDisablerPHPUnit7 extends BaseTestListener
3535
* @param Deactivatable $deactivatable The function mocks.
3636
* @param Closure|null $callback The callback to execute after the test.
3737
*/
38-
public function __construct(Deactivatable $deactivatable, Closure $callback = null)
38+
public function __construct(Deactivatable $deactivatable, $callback = null)
3939
{
4040
$this->deactivatable = $deactivatable;
4141
$this->callback = $callback;

0 commit comments

Comments
 (0)