From 6ca1a0e7c24ff2586b8e3ed0e5623f188d7a8979 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:15:37 +0800 Subject: [PATCH] Update Blade.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 兼容PHP8.4 --- src/Blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Blade.php b/src/Blade.php index d5acd98..2aac797 100644 --- a/src/Blade.php +++ b/src/Blade.php @@ -30,7 +30,7 @@ class Blade implements FactoryContract */ private $compiler; - public function __construct($viewPaths, string $cachePath, ContainerInterface $container = null) + public function __construct($viewPaths, string $cachePath, ?ContainerInterface $container = null) { $this->container = $container ?: new Application;