From 4a26ed79c467a01adea14e05f08d554d124626ab Mon Sep 17 00:00:00 2001 From: Joshua Fredrickson Date: Fri, 2 Feb 2024 17:47:52 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20`is=5Ffile()`=20deprecatio?= =?UTF-8?q?n=20warning=20(#340)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Roots/Acorn/Bootloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Roots/Acorn/Bootloader.php b/src/Roots/Acorn/Bootloader.php index fc0e8c98..04f85567 100644 --- a/src/Roots/Acorn/Bootloader.php +++ b/src/Roots/Acorn/Bootloader.php @@ -373,7 +373,7 @@ protected function basePath(): string */ protected function environmentPath(): string { - return is_file($envPath = $this->files->closest($this->basePath(), '.env')) + return is_file($envPath = $this->files->closest($this->basePath(), '.env') ?? '') ? dirname($envPath) : $this->basePath(); }