8000 [Dotenv] fix typos · symfony/symfony@e0c4528 · GitHub
[go: up one dir, main page]

Skip to content

Commit e0c4528

Browse files
[Dotenv] fix typos
1 parent 7e2fbe1 commit e0c4528

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

UPGRADE-4.3.md

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

51-
* First parameter of `Dontenv::__construct()` will change from `true` to `false` in Symfony 5.0. A deprecation warning
52-
will be triggered if no parameter is used. Use `$usePutenv=true` to upgrade without breaking changes.
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.
5353

5454
EventDispatcher
5555
---------------

UPGRADE-5.0.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ DomCrawler
7070

7171
* The `Crawler::children()` method has a new `$selector` argument.
7272

73+
Dotenv
74+
------
75+
76+
* First parameter `$usePutenv` of `Dotenv::__construct()` now default to `false`.
77+
7378
EventDispatcher
7479
---------------
7580

src/Symfony/Component/Dotenv/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CHANGELOG
44
4.3.0
55
-----
66

7-
* deprecated use of `putenv()` but default. This feature will be opted-in with a constructor argument to `Dotenv`.
7+
* deprecated use of `putenv()` by default. This feature will be opted-in with a constructor argument to `Dotenv`
88

99
4.2.0
1010
-----

src/Symfony/Component/Dotenv/Dotenv.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ final class Dotenv
3838
private $usePutenv = true;
3939

4040
/**
41-
* @var bool If we should use `putenv()` to define environment variables
42-
* or not. Since Symfony 5.0 the default value is false
43-
* because `putenv()` is not thread safe.
41+
* @var bool If `putenv()` should be used to define environment variables or not.
42+
* Beware that `putenv()` is not thread safe and this setting will default
43+
* to `false` in Symfony 5.0.
4444
*/
4545
public function __construct(bool $usePutenv = true)
4646
{
47-
if (0 === \func_num_args()) {
47+
if (!\func_num_args()) {
4848
@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);
4949
}
5050

src/Symfony/Component/Dotenv/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Dotenv Component
22
================
33

44
Symfony Dotenv parses `.env` files to make environment variables stored in them
5-
accessible via `$_ENV`, `$_SERVER` and optionally `getenv()`.
5+
accessible via `$_SERVER`, `$_ENV` and optionally `getenv()`.
66

77
Resources
88
---------

0 commit comments

Comments
 (0)
0