Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce6ecaf

Browse files
committed
Add upgrade from 4.2 to 4.3
1 parent cc0be40 commit ce6ecaf

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

UPGRADE-4.2.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Config
2929
```
3030

3131
* Deprecated `FileLoaderLoadException`, use `LoaderLoadException` instead.
32-
* Deprecated using environment variables with `cannotBeEmpty()` if the value is validated with `validate()`
3332

3433
Console
3534
-------

UPGRADE-4.3.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
UPGRADE FROM 4.2 to 4.3
2+
=======================
3+
4+
Config
5+
------
6+
7+
* Deprecated using environment variables with `cannotBeEmpty()` if the value is validated with `validate()`

src/Symfony/Component/Config/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
CHANGELOG
22
=========
33

4+
4.3.0
5+
-----
6+
7+
* deprecated using environment variables with `cannotBeEmpty()` if the value is validated with `validate()`
8+
49
4.2.0
510
-----
611

712
* deprecated constructing a `TreeBuilder` without passing root node information
813
* renamed `FileLoaderLoadException` to `LoaderLoadException`
9-
* deprecated using environment variables with `cannotBeEmpty()` if the value is validated with `validate()`
1014

1115
4.1.0
1216
-----

src/Symfony/Component/Config/Definition/VariableNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function finalizeValue($value)
8484
// deny environment variables only when using custom validators
8585
// this avoids ever passing an empty value to final validation closures
8686
if (!$this->allowEmptyValue && $this->isHandlingPlaceholder() && $this->finalValidationClosures) {
87-
@trigger_error(sprintf('Setting path "%s" to an environment variable is deprecated since Symfony 4.2. Remove "cannotBeEmpty()", "validate()" or include a prefix/suffix value instead.', $this->getPath()), E_USER_DEPRECATED);
87+
@trigger_error(sprintf('Setting path "%s" to an environment variable is deprecated since Symfony 4.3. Remove "cannotBeEmpty()", "validate()" or include a prefix/suffix value instead.', $this->getPath()), E_USER_DEPRECATED);
8888
// $e = new InvalidConfigurationException(sprintf('The path "%s" cannot contain an environment variable when empty values are not allowed by definition and are validated.', $this->getPath(), json_encode($value)));
8989
// if ($hint = $this->getInfo()) {
9090
// $e->addHint($hint);

src/Symfony/Component/DependencyInjection/Tests/Compiler/ValidateEnvPlaceholdersPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function testEmptyEnvWhichCannotBeEmptyForScalarNode(): void
215215
* NOT LEGACY (test exception in 5.0).
216216
*
217217
* @group legacy
218-
* @expectedDeprecation Setting path "env_extension.scalar_node_not_empty_validated" to an environment variable is deprecated since Symfony 4.2. Remove "cannotBeEmpty()", "validate()" or include a prefix/suffix value instead.
218+
* @expectedDeprecation Setting path "env_extension.scalar_node_not_empty_validated" to an environment variable is deprecated since Symfony 4.3. Remove "cannotBeEmpty()", "validate()" or include a prefix/suffix value instead.
219219
*/
220220
public function testEmptyEnvWhichCannotBeEmptyForScalarNodeWithValidation(): void
221221
{

0 commit comments

Comments
 (0)