Skip to content

Commit 7713e62

Browse files
committed
code refactor, updated composer, docs, workflow, tests
Signed-off-by: bidi <bidi@apidemia.com>
1 parent 631d491 commit 7713e62

66 files changed

Lines changed: 3166 additions & 700 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/codecov.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"
21+
- "8.6"
2222

2323
steps:
2424
- name: Checkout
@@ -43,8 +43,10 @@ jobs:
4343
restore-keys: |
4444
php${{ matrix.php }}-composer-
4545
46+
# dot-log, laminas-servicemanager, laminas-validator and laminas-stratigility do not declare PHP 8.6 yet.
47+
# Remove the conditional flag once they do.
4648
- name: Install dependencies with composer
47-
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
49+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
4850

4951
- name: Collect code coverage with PHPUnit
5052
run: vendor/bin/phpunit --colors=always --coverage-clover clover.xml

‎.github/workflows/static-analysis.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
name: Run PHPStan checks
55

66
jobs:
7-
mutation:
7+
phpstan:
88
name: PHPStan ${{ matrix.php }}-${{ matrix.os }}
99

1010
runs-on: ${{ matrix.os }}
@@ -15,10 +15,10 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"
21+
- "8.6"
2222

2323
steps:
2424
- name: Checkout
@@ -28,7 +28,7 @@ jobs:
2828
uses: shivammathur/setup-php@v2
2929
with:
3030
php-version: "${{ matrix.php }}"
31-
coverage: pcov
31+
coverage: none
3232
ini-values: assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
3333
tools: composer:v2, cs2pr
3434

@@ -43,8 +43,10 @@ jobs:
4343
restore-keys: |
4444
php${{ matrix.php }}-composer-
4545
46+
# dot-log, laminas-servicemanager, laminas-validator and laminas-stratigility do not declare PHP 8.6 yet.
47+
# Remove the conditional flag once they do.
4648
- name: Install dependencies with composer
47-
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
49+
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi ${{ matrix.php == '8.6' && '--ignore-platform-req=php+' || '' }}
4850

4951
- name: Run static analysis with PHPStan
5052
run: vendor/bin/phpstan analyse

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
clover.xml
22
coveralls-upload.json
3+
.phpunit.cache
34
.phpunit.result.cache
45
.phpcs-cache
56
config/log.global.php

‎.laminas-ci.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"backwardCompatibilityCheck": true
2+
"ignore_php_platform_requirements": {
3+
"8.6": true
4+
},
5+
"backwardCompatibilityCheck": false
36
}

0 commit comments

Comments
 (0)