Skip to content

Commit ee5da9b

Browse files
committed
Did some housekeeping chores here including:
* Symfony 8 support * Psalm dropped * phpat added for final class security and possiblity for future architecture checks * PHPStan now covers tests files * Readme fixes: hydrator links updated: * workflow adjustments: psalm removed, removed unneeded php deps
1 parent 2acf953 commit ee5da9b

26 files changed

+861
-2918
lines changed

.github/workflows/backward-compatibility-check.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
dependencies:
1717
- "locked"
1818
php-version:
19-
- "8.4"
19+
- "8.5"
2020
operating-system:
2121
- "ubuntu-latest"
2222

@@ -29,10 +29,8 @@ jobs:
2929
- name: "Install PHP"
3030
uses: "shivammathur/setup-php@2.36.0"
3131
with:
32-
coverage: "pcov"
3332
php-version: "${{ matrix.php-version }}"
3433
ini-values: memory_limit=-1
35-
extensions: pdo_sqlite, bcmath, intl, sodium
3634

3735
- uses: ramsey/composer-install@3.1.1
3836
with:

.github/workflows/benchmark.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
coverage: "none"
2828
php-version: "${{ matrix.php-version }}"
2929
ini-values: memory_limit=-1, opcache.enable_cli=1, opcache.jit=tracing, opcache.jit_buffer_size=64M
30-
extensions: pdo_sqlite
3130

3231
- name: "Checkout base"
3332
uses: actions/checkout@v6

.github/workflows/coding-standard.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ jobs:
3131
- name: "Install PHP"
3232
uses: "shivammathur/setup-php@2.36.0"
3333
with:
34-
coverage: "pcov"
3534
php-version: "${{ matrix.php-version }}"
3635
ini-values: memory_limit=-1
37-
extensions: pdo_sqlite
3836

3937
- uses: ramsey/composer-install@3.1.1
4038
with:

.github/workflows/mutation-tests-diff.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ jobs:
3232
coverage: "pcov"
3333
php-version: "${{ matrix.php-version }}"
3434
ini-values: memory_limit=-1
35-
extensions: pdo_sqlite
3635

3736
- uses: ramsey/composer-install@3.1.1
3837
with:
3938
dependency-versions: ${{ matrix.dependencies }}
4039

4140
- name: "Infection"
42-
run: "vendor/bin/infection --threads=max --static-analysis-tool=phpstan --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --with-uncovered --min-msi=90 --min-covered-msi=95"
41+
run: "vendor/bin/infection --threads=max --git-diff-lines --git-diff-base=origin/$GITHUB_BASE_REF --ignore-msi-with-no-mutations --with-uncovered --min-msi=90 --min-covered-msi=95"

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ jobs:
3434
coverage: "pcov"
3535
php-version: "${{ matrix.php-version }}"
3636
ini-values: memory_limit=-1
37-
extensions: pdo_sqlite
3837

3938
- uses: ramsey/composer-install@3.1.1
4039
with:
4140
dependency-versions: ${{ matrix.dependencies }}
4241

4342
- name: "Infection"
44-
run: "vendor/bin/infection --threads=max --static-analysis-tool=phpstan"
43+
run: "vendor/bin/infection --threads=max"
4544
env:
4645
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

.github/workflows/phpstan.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ jobs:
3131
- name: "Install PHP"
3232
uses: "shivammathur/setup-php@2.36.0"
3333
with:
34-
coverage: "pcov"
3534
php-version: "${{ matrix.php-version }}"
3635
ini-values: memory_limit=-1
37-
extensions: pdo_sqlite
3836

3937
- uses: ramsey/composer-install@3.1.1
4038
with:

.github/workflows/psalm.yml

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

.github/workflows/unit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
coverage: "pcov"
5252
php-version: "${{ matrix.php-version }}"
5353
ini-values: memory_limit=-1
54-
extensions: pdo_sqlite
5554

5655
- uses: ramsey/composer-install@3.1.1
5756
with:

Makefile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,22 @@ cs: vendor
1515

1616
.PHONY: phpstan
1717
phpstan: vendor ## run phpstan static code analyser
18-
vendor/bin/phpstan analyse
18+
vendor/bin/phpstan analyse --memory-limit=-1
1919

2020
.PHONY: phpstan-baseline
2121
phpstan-baseline: vendor ## run phpstan static code analyser
22-
vendor/bin/phpstan analyse --generate-baseline
23-
24-
.PHONY: psalm
25-
psalm: vendor ## run psalm static code analyser
26-
vendor/bin/psalm
27-
28-
.PHONY: psalm-baseline
29-
psalm-baseline: vendor ## run psalm static code analyser
30-
vendor/bin/psalm --update-baseline --set-baseline=baseline.xml
22+
vendor/bin/phpstan analyse --generate-baseline --memory-limit=-1
3123

3224
.PHONY: phpunit
3325
phpunit: vendor ## run phpunit tests
3426
XDEBUG_MODE=coverage vendor/bin/phpunit
3527

3628
.PHONY: infection
3729
infection: vendor ## run infection
38-
XDEBUG_MODE=coverage vendor/bin/roave-infection-static-analysis-plugin --threads=max
30+
XDEBUG_MODE=coverage vendor/bin/infection --threads=3
3931

4032
.PHONY: static
41-
static: psalm phpstan phpcs-check ## run static analyser
33+
static: phpstan cs ## run static analysers
4234

4335
test: phpunit ## run tests
4436

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fpatchlevel%2Fhydrator%2F1.10.x)](https://dashboard.stryker-mutator.io/reports/github.com/patchlevel/hydrator/1.10.x)
2-
[![Type Coverage](https://shepherd.dev/github/patchlevel/hydrator/coverage.svg)](https://shepherd.dev/github/patchlevel/hydrator)
1+
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fpatchlevel%2Fhydrator%2F1.13.x)](https://dashboard.stryker-mutator.io/reports/github.com/patchlevel/hydrator/1.13.x)
32
[![Latest Stable Version](https://poser.pugx.org/patchlevel/hydrator/v)](//packagist.org/packages/patchlevel/hydrator)
43
[![License](https://poser.pugx.org/patchlevel/hydrator/license)](//packagist.org/packages/patchlevel/hydrator)
54

0 commit comments

Comments
 (0)