File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 1212
1313### Backward Incompatible Changes
1414
15- None
15+ Removed helper functions, use ` StaticInflector ` instead.
1616
1717### Deprecated Features
1818
Original file line number Diff line number Diff 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
131131echo StaticInflector::pluralize('child'); // "children"
132132echo StaticInflector::pluralize('genou', 'fr'); // "genoux"
133133echo StaticInflector::singularize('lærere', 'nb'); // "lærer"
134134echo 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments