Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 872b7fd

Browse files
[Dotenv] Remove deprecated code
1 parent b494790 commit 872b7fd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,8 @@ final class Dotenv
4040
private $prodEnvs = ['prod'];
4141
private $usePutenv = false;
4242

43-
/**
44-
* @param string $envKey
45-
*/
46-
public function __construct($envKey = 'APP_ENV', string $debugKey = 'APP_DEBUG')
43+
public function __construct(string $envKey = 'APP_ENV', string $debugKey = 'APP_DEBUG')
4744
{
48-
if (\in_array($envKey = (string) $envKey, ['1', ''], true)) {
49-
trigger_deprecation('symfony/dotenv', '5.1', 'Passing a boolean to the constructor of "%s" is deprecated, use "Dotenv::usePutenv()".', __CLASS__);
50-
$this->usePutenv = (bool) $envKey;
51-
$envKey = 'APP_ENV';
52-
}
53-
5445
$this->envKey = $envKey;
5546
$this->debugKey = $debugKey;
5647
}

0 commit comments

Comments
 (0)