Skip to content

Commit 84d0962

Browse files
[Dotenv] fix typos
1 parent d2fa94d commit 84d0962

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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
-----

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

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)