From 9391a1ddce7e90b0caa7e7a2c313b86da7fcfee6 Mon Sep 17 00:00:00 2001 From: Chemaclass Date: Thu, 12 Dec 2024 19:59:44 +0100 Subject: [PATCH] fix: Gacela::bootstrap with nullable arg Required on PHP 8.4, otherwise deprecation msg --- src/Framework/Gacela.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Framework/Gacela.php b/src/Framework/Gacela.php index 58e34660..4608ae52 100644 --- a/src/Framework/Gacela.php +++ b/src/Framework/Gacela.php @@ -36,7 +36,7 @@ final class Gacela * * @param null|Closure(GacelaConfig):void $configFn */ - public static function bootstrap(string $appRootDir, Closure $configFn = null): void + public static function bootstrap(string $appRootDir, ?Closure $configFn = null): void { self::$appRootDir = $appRootDir; self::$mainContainer = null;