From 2e708d198d0849d6a12a03377fe847151ff24193 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 27 Aug 2018 02:48:33 +0700 Subject: [PATCH] use string type hint in $file parameter in DotEnv::__construct() --- system/Config/DotEnv.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; }