Skip to content

Commit

Permalink
Merge pull request #1181 from samsonasik/string-param-dotenv
Browse files Browse the repository at this point in the history
use string type hint in $file parameter in DotEnv::__construct()
  • Loading branch information
lonnieezell authored Aug 27, 2018
2 parents f1bdc19 + 2e708d1 commit e9a1d8a
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions system/Config/DotEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e9a1d8a

Please sign in to comment.