8000 Improve Dotenv messages · symfony/symfony@e871a6a · GitHub
[go: up one dir, main page]

Skip to content

Commit e871a6a

Browse files
committed
Improve Dotenv messages
1 parent e0c4528 commit e871a6a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

UPGRADE-4.3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ Doctrine Bridge
4848
Dotenv
4949
------
5050

51-
* First parameter of `Dotenv::__construct()` will change from `true` to `false` in Symfony 5.0. A deprecation warning
52-
is triggered if no parameter is used. Use `$usePutenv = true` to upgrade without breaking changes.
51+
* First parameter of `Dotenv::__construct()` will be changed from `true` to `false` in Symfony 5.0. A deprecation warning
52+
is triggered if no parameter is provided. Use `$usePutenv = true` to upgrade without breaking changes.
5353

5454
EventDispatcher
5555
---------------
@@ -170,7 +170,7 @@ SecurityBundle
170170
TwigBridge
171171
----------
172172

173-
* deprecated the `$requestStack` and `$requestContext` arguments of the
173+
* deprecated the `$requestStack` and `$requestContext` arguments of the
174174
`HttpFoundationExtension`, pass a `Symfony\Component\HttpFoundation\UrlHelper`
175175
instance as the only argument instead
176176

src/Symfony/Component/Dotenv/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;

src/Symfony/Component/Dotenv/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)
0