diff --git a/system/Config/DotEnv.php b/system/Config/DotEnv.php index 0ac1f24c9c29..950b2838e53e 100644 --- a/system/Config/DotEnv.php +++ b/system/Config/DotEnv.php @@ -57,13 +57,8 @@ class DotEnv * @param string $path * @param string $file */ - public function __construct(string $path, $file = '.env') + public function __construct(string $path, string $file = '.env') { - if ( ! is_string($file)) - { - $file = '.env'; - } - $this->path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $file; }