Skip to content

Commit 218ff13

Browse files
committed
Remove helper functions
1 parent 24c7090 commit 218ff13

4 files changed

Lines changed: 2 additions & 63 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -47,32 +47,3 @@ jobs:
4747
run: |
4848
composer global require php-coveralls/php-coveralls
4949
php-coveralls --coverage_clover=build/logs/clover.xml -v
50-
51-
test-helpers:
52-
runs-on: ubuntu-latest
53-
steps:
54-
- name: Checkout
55-
uses: actions/checkout@v4
56-
- name: Install PHP
57-
uses: shivammathur/setup-php@v2
58-
with:
59-
coverage: xdebug
60-
php-version: "7.4"
61-
ini-values: memory_limit=-1
62-
tools: composer:v2
63-
- name: Cache dependencies
64-
uses: actions/cache@v4
65-
with:
66-
path: |
67-
~/.composer/cache
68-
vendor
69-
key: "php-7.4"
70-
restore-keys: "php-7.4"
71-
72-
- name: Install dependencies
73-
run: composer install --no-interaction --no-progress
74-
75-
- name: Run PHPUnit
76-
run: make test
77-
env:
78-
PHPUNIT_VERSION: "09-helpers"

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ None
1212

1313
### Backward Incompatible Changes
1414

15-
None
15+
Removed helper functions, use `StaticInflector` instead.
1616

1717
### Deprecated Features
1818

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,26 +125,15 @@ Static interfaces are also available:
125125
```php
126126
<?php
127127

128-
namespace ICanBoogie;
128+
use ICanBoogie\StaticInflector;
129129

130130
# Static inflector
131131
echo StaticInflector::pluralize('child'); // "children"
132132
echo StaticInflector::pluralize('genou', 'fr'); // "genoux"
133133
echo StaticInflector::singularize('lærere', 'nb'); // "lærer"
134134
echo StaticInflector::pluralize('üçgen', 'tr'); // "üçgenler"
135-
136-
# Helper functions
137-
echo pluralize('child'); // "children"
138-
echo pluralize('genou', 'fr'); // "genoux"
139-
echo singularize('lærere', 'nb'); // "lærer"
140-
echo pluralize('üçgen', 'tr'); // "üçgenler"
141135
```
142136

143-
> [!WARNING]
144-
> Since v3.0 the file with the helper functions is no longer included in the
145-
> autoload.
146-
> You need to include the file `vendor/icanboogie/inflector/lib/helpers.php`
147-
> in your `composer.json` if you want to continue using these functions.
148137

149138

150139
## About inflections

phpunit09-helpers.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)