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

Skip to content

Commit cecc2ee

Browse files
committed
minor #15722 [Config] move feature description to changelog file (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [Config] move feature description to changelog file | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15433 | License | MIT | Doc PR | Commits ------- e1818bd move feature description to changelog file
2 parents a8c3b23 + e1818bd commit cecc2ee

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

UPGRADE-2.8.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -399,23 +399,3 @@ FrameworkBundle
399399
session:
400400
cookie_httponly: false
401401
```
402-
403-
Config
404-
------
405-
406-
The edge case of defining just one value for nodes of type Enum is now allowed:
407-
408-
```php
409-
$rootNode
410-
->children()
411-
->enumNode('variable')
412-
->values(array('value'))
413-
->end()
414-
->end()
415-
;
416-
```
417-
418-
Before: `InvalidArgumentException` (variable must contain at least two
419-
distinct elements).
420-
After: the code will work as expected and it will restrict the values of the
421-
`variable` option to just `value`.

src/Symfony/Component/Config/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
CHANGELOG
22
=========
33

4+
2.8.0
5+
-----
6+
7+
The edge case of defining just one value for nodes of type Enum is now allowed:
8+
9+
```php
10+
$rootNode
11+
->children()
12+
->enumNode('variable')
13+
->values(array('value'))
14+
->end()
15+
->end()
16+
;
17+
```
18+
19+
Before: `InvalidArgumentException` (variable must contain at least two
20+
distinct elements).
21+
After: the code will work as expected and it will restrict the values of the
22+
`variable` option to just `value`.
23+
424
2.7.0
525
-----
626

0 commit comments

Comments
 (0)