Skip to content
Permalink
Browse files

[Dotenv] fix typos

  • Loading branch information...
nicolas-grekas committed Apr 10, 2019
1 parent 7e2fbe1 commit e0c452823720a4db56829fa5949bae9b03b2a8a2
@@ -48,8 +48,8 @@ Doctrine Bridge
Dotenv
------

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

EventDispatcher
---------------
@@ -70,6 +70,11 @@ DomCrawler

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

Dotenv
------

* First parameter `$usePutenv` of `Dotenv::__construct()` now default to `false`.

EventDispatcher
---------------

@@ -4,7 +4,7 @@ CHANGELOG
4.3.0
-----

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

4.2.0
-----
@@ -38,13 +38,13 @@ final class Dotenv
private $usePutenv = true;
/**
* @var bool If we should use `putenv()` to define environment variables
* or not. Since Symfony 5.0 the default value is false
* because `putenv()` is not thread safe.
* @var bool If `putenv()` should be used to define environment variables or not.
* Beware that `putenv()` is not thread safe and this setting will default
* to `false` in Symfony 5.0.
*/
public function __construct(bool $usePutenv = true)
{
if (0 === \func_num_args()) {
if (!\func_num_args()) {
@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);
}
@@ -2,7 +2,7 @@ Dotenv Component
================

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

Resources
---------

0 comments on commit e0c4528

Please sign in to comment.
You can’t perform that action at this time.