Skip to content

Commit

Permalink
馃┕ Fix is_file() deprecation warning (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafredrickson committed Feb 2, 2024
1 parent 40b2921 commit 4a26ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Bootloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4a26ed7

Please sign in to comment.