Commit a91d20d
committed
This PR was merged into the 5.4 branch.
Discussion
----------
[String] [EnglishInflector] Fix words ending with `le`, e.g., `articles`
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| License | MIT
The English inflector incorrectly singularizes words ending in "les", e.g., "articles":
```php
[
0 => "articl",
1 => "article"
]
```
As far as I'm aware "articl" is not a valid singular form for "articles". ;)
After this PR:
```php
[
0 => "article"
]
```
I'm not entirely sure whether the map entry is correct this way, but at least the tests don't break.
Commits
-------
34577b9 [String][EnglishInflector] Fix words ending in 'le', e.g., articles
File tree
2 files changed
+7
-0
lines changed- src/Symfony/Component/String
- Inflector
- Tests/Inflector
2 files changed
+7
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| 198 | + | |
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| |||
0 commit comments