Skip to content

Commit 086ea10

Browse files
authored
Merge pull request #6 from php-etl/feature/position-function
Add a new function to find the position of a substring in a string
2 parents 965c7cf + ccee44e commit 086ea10

File tree

9 files changed

+258
-394
lines changed

9 files changed

+258
-394
lines changed

.github/workflows/actions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
- uses: actions/checkout@v2
88
- name: Cs-Fixer
99
run: |
10-
wget -q https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
10+
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer
1111
chmod a+x php-cs-fixer
1212
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run
1313
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: shivammathur/setup-php@v2
1919
with:
20-
php-version: '8.0'
20+
php-version: '8.1'
2121
tools: composer:v2
2222
coverage: pcov
2323
- uses: actions/cache@v2
@@ -29,7 +29,7 @@ jobs:
2929
- uses: php-actions/composer@v5
3030
with:
3131
args: --prefer-dist
32-
php_version: 8.0
32+
php_version: 8.1
3333

3434
- name: Run tests & generate Coverage
3535
run: bin/phpunit tests --coverage-html var/coverage --whitelist=src
@@ -55,7 +55,7 @@ jobs:
5555
- uses: php-actions/composer@v5
5656
with:
5757
args: --prefer-dist
58-
php_version: 8.0
58+
php_version: 8.1
5959

6060
- name: PHPStan
6161
uses: php-actions/phpstan@v2

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ foo: '@=format("%s", "output")'
2424
* `fileName(string $string) : string` => Returns information about a file path
2525
* `dateTime(string $string) : string` => Returns new DateTimeImmutable object formatted according to the specified format
2626
* `formatDate(string $string) : string` => Returns date formatted according to given format
27+
* `indexOf(string $haystack, string $needle, int $offset) : int|false` => Find the position of the first occurrence of a substring in a string

0 commit comments

Comments
 (0)