Skip to content

Commit

Permalink
use string type hint in $file parameter in DotEnv::__construct()
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Aug 26, 2018
1 parent f1bdc19 commit 2e708d1
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 2e708d1

Please sign in to comment.