From ef55e0b6c5fbbcae6db2021228eb23880191a701 Mon Sep 17 00:00:00 2001 From: Florian Leimer Date: Fri, 10 Jan 2025 10:39:17 +0100 Subject: [PATCH] Fix PHP 8.4 deprecation notice for implicitly marking parameter as nullable --- src/Composer/InstallerScript/ConsoleCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/InstallerScript/ConsoleCommand.php b/src/Composer/InstallerScript/ConsoleCommand.php index a88bdb8..e9bafed 100644 --- a/src/Composer/InstallerScript/ConsoleCommand.php +++ b/src/Composer/InstallerScript/ConsoleCommand.php @@ -58,7 +58,7 @@ public function __construct( string $command, array $arguments = [], string $message = '', - callable $shouldRun = null, + ?callable $shouldRun = null, bool $allowFailure = true ) { $this->command = $command;