Skip to content

Commit e69af08

Browse files
authored
Merge pull request #330 from greg0ire/3.0.x
Merge 2.2.x up into 3.0.x
2 parents 09e50c5 + 511d446 commit e69af08

21 files changed

Lines changed: 386 additions & 83 deletions

.doctrine-project.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
"slug": "inflector",
55
"docsSlug": "doctrine-inflector",
66
"versions": [
7+
{
8+
"name": "2.2",
9+
"branchName": "2.2.x",
10+
"slug": "2.2",
11+
"upcoming": true
12+
},
713
{
814
"name": "2.1",
915
"branchName": "2.1.x",
1016
"slug": "2.1",
11-
"upcoming": true
17+
"current": true
1218
},
1319
{
1420
"name": "2.0",
15-
"branchName": "2.0.x",
1621
"slug": "2.0",
17-
"current": true,
18-
"aliases": [
19-
"current",
20-
"stable"
21-
]
22+
"maintained": false
2223
},
2324
{
2425
"name": "1.4",
25-
"branchName": "1.4.x",
2626
"slug": "1.4",
2727
"maintained": false
2828
},

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
coding-standards:
1414
name: "Coding Standards"
15-
uses: "doctrine/.github/.github/workflows/coding-standards.yml@7.3.0"
15+
uses: "doctrine/.github/.github/workflows/coding-standards.yml@13.1.0"

.github/workflows/composer-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ on:
1515
jobs:
1616
composer-lint:
1717
name: "Composer Lint"
18-
uses: "doctrine/.github/.github/workflows/composer-lint.yml@7.3.0"
18+
uses: "doctrine/.github/.github/workflows/composer-lint.yml@13.1.0"

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
name: "Roave BC Check"
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: "actions/checkout@v4"
17+
- uses: "actions/checkout@v6"
1818
with:
1919
fetch-depth: 0
2020

@@ -31,7 +31,7 @@ jobs:
3131

3232
phpunit:
3333
name: "PHPUnit"
34-
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@7.3.0"
34+
uses: "doctrine/.github/.github/workflows/continuous-integration.yml@13.1.0"
3535
with:
3636
php-versions: '["8.4"]'
3737
secrets:

.github/workflows/release-on-milestone-closed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
release:
1010
name: "Git tag, release & create merge-up PR"
11-
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@7.3.0"
11+
uses: "doctrine/.github/.github/workflows/release-on-milestone-closed.yml@13.1.0"
1212
secrets:
1313
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
1414
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ on:
1212
jobs:
1313
static-analysis-phpstan:
1414
name: "Static Analysis"
15-
uses: "doctrine/.github/.github/workflows/phpstan.yml@7.3.0"
15+
uses: "doctrine/.github/.github/workflows/phpstan.yml@13.1.0"

.github/workflows/website-schema.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ on:
1818
jobs:
1919
json-validate:
2020
name: "Validate JSON schema"
21-
uses: "doctrine/.github/.github/workflows/website-schema.yml@7.3.0"
21+
uses: "doctrine/.github/.github/workflows/website-schema.yml@13.1.0"

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@
4242
"php": "^8.4"
4343
},
4444
"require-dev": {
45-
"doctrine/coding-standard": "^13.0",
45+
"doctrine/coding-standard": "^14.0",
4646
"phpstan/phpstan": "^2.0",
4747
"phpstan/phpstan-phpunit": "^2.0",
4848
"phpstan/phpstan-strict-rules": "^2.0",
49-
"phpunit/phpunit": "^12.2"
49+
"phpunit/phpunit": "^12.5.6"
5050
},
5151
"autoload": {
5252
"psr-4": {

docs/en/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ The supported languages are as follows:
4141
- ``Language::ENGLISH``
4242
- ``Language::ESPERANTO``
4343
- ``Language::FRENCH``
44+
- ``Language::ITALIAN``
4445
- ``Language::NORWEGIAN_BOKMAL``
4546
- ``Language::PORTUGUESE``
4647
- ``Language::SPANISH``
48+
- ``Language::SWEDISH``
4749
- ``Language::TURKISH``
4850

4951
If you want to manually construct the inflector instead of using a factory, you can do so like this:

src/InflectorFactory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Doctrine\Inflector\Rules\NorwegianBokmal;
1212
use Doctrine\Inflector\Rules\Portuguese;
1313
use Doctrine\Inflector\Rules\Spanish;
14+
use Doctrine\Inflector\Rules\Swedish;
1415
use Doctrine\Inflector\Rules\Turkish;
1516
use InvalidArgumentException;
1617

@@ -47,6 +48,9 @@ public static function createForLanguage(string $language): LanguageInflectorFac
4748
case Language::SPANISH:
4849
return new Spanish\InflectorFactory();
4950

51+
case Language::SWEDISH:
52+
return new Swedish\InflectorFactory();
53+
5054
case Language::TURKISH:
5155
return new Turkish\InflectorFactory();
5256

0 commit comments

Comments
 (0)