Skip to content

Commit fad49a7

Browse files
committed
Improve Dotenv messages
1 parent 84d0962 commit fad49a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dotenv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ final class Dotenv
4545
public function __construct(bool $usePutenv = true)
4646
{
4747
if (!\func_num_args()) {
48-
@trigger_error(sprintf('The default value of "$usePutenv" argument of "%s\'s constructor will change from "true" to "false" in Symfony 5.0, you should define its value explicitly.', __METHOD__), E_USER_DEPRECATED);
48+
@trigger_error(sprintf('The default value of "$usePutenv" argument of "%s" will be changed from "true" to "false" in Symfony 5.0. You should define its value explicitly.', __METHOD__), E_USER_DEPRECATED);
4949
}
5050

5151
$this->usePutenv = $usePutenv;

Tests/DotenvTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ public function testOverridingEnvVarsWithNamesMemorizedInSpecialVar()
417417

418418
/**
419419
* @group legacy
420-
* @expectedDeprecation The default value of "$usePutenv" argument of "%s's constructor will change from "true" to "false" in Symfony 5.0, you should define its value explicitly.
420+
* @expectedDeprecation The default value of "$usePutenv" argument of "%s" will be changed from "true" to "false" in Symfony 5.0. You should define its value explicitly.
421421
*/
422422
public function testDeprecationWarning()
423423
{

0 commit comments

Comments
 (0)