Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release 2.0.9 into 2.1.x #242

Merged
merged 7 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ jobs:
name: "Roave BC Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Roave BC Check
uses: docker://nyholm/roave-bc-check-ga
- uses: "actions/checkout@v3"
with:
fetch-depth: 0

- name: Install PHP with extensions.
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"

- name: Install roave/backward-compatibility-check.
run: composer require --dev roave/backward-compatibility-check

- name: Run roave/backward-compatibility-check.
run: vendor/bin/roave-backward-compatibility-check

phpunit:
name: "PHPUnit"
Expand Down
3 changes: 3 additions & 0 deletions lib/Doctrine/Inflector/Rules/English/Inflectible.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public static function getPlural(): iterable
public static function getIrregular(): iterable
{
yield new Substitution(new Word('atlas'), new Word('atlases'));
yield new Substitution(new Word('axis'), new Word('axes'));
yield new Substitution(new Word('axe'), new Word('axes'));
yield new Substitution(new Word('beef'), new Word('beefs'));
yield new Substitution(new Word('blouse'), new Word('blouses'));
Expand All @@ -104,13 +105,15 @@ public static function getIrregular(): iterable
yield new Substitution(new Word('child'), new Word('children'));
yield new Substitution(new Word('canvas'), new Word('canvases'));
yield new Substitution(new Word('cookie'), new Word('cookies'));
yield new Substitution(new Word('brownie'), new Word('brownies'));
yield new Substitution(new Word('corpus'), new Word('corpuses'));
yield new Substitution(new Word('cow'), new Word('cows'));
yield new Substitution(new Word('criterion'), new Word('criteria'));
yield new Substitution(new Word('curriculum'), new Word('curricula'));
yield new Substitution(new Word('demo'), new Word('demos'));
yield new Substitution(new Word('domino'), new Word('dominoes'));
yield new Substitution(new Word('echo'), new Word('echoes'));
yield new Substitution(new Word('epoch'), new Word('epochs'));
yield new Substitution(new Word('foot'), new Word('feet'));
yield new Substitution(new Word('fungus'), new Word('fungi'));
yield new Substitution(new Word('ganglion'), new Word('ganglions'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function dataSampleWords(): array
['congoese', 'congoese'],
['contretemps', 'contretemps'],
['cookie', 'cookies'],
['brownie', 'brownies'],
['copy', 'copies'],
['coreopsis', 'coreopsis'],
['corps', 'corps'],
Expand Down Expand Up @@ -117,6 +118,7 @@ public function dataSampleWords(): array
['emphasis', 'emphases'],
['employee-child', 'employee-children'],
['energy', 'energies'],
['epoch', 'epochs'],
['equipment', 'equipment'],
['evidence', 'evidence'],
['experience', 'experiences'],
Expand Down Expand Up @@ -388,6 +390,7 @@ public function dataSingularsUninflectedWhenSingularized(): array
['fascia', 'fascium'],
['status', 'statu'],
['campus', 'campu'],
['axis', 'axes'],
];
}

Expand Down