Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
php: [8.4]

runs-on: packages
container: chialab/php:${{ matrix.php }}
Expand All @@ -27,6 +27,7 @@ jobs:

- name: Composer cache
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand All @@ -40,13 +41,14 @@ jobs:
php-cs-fixer:
name: php-cs-fixer
runs-on: packages
container: chialab/php:8.3
container: chialab/php:8.4
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Composer cache
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.2, 8.3]
php: [8.4]

runs-on: packages
container: chialab/php:${{ matrix.php }}
Expand All @@ -86,6 +88,7 @@ jobs:

- name: Composer cache
uses: actions/cache@v4
if: ${{ !env.ACT }}
with:
path: vendor
key: composer-${{ hashFiles('composer.json') }}
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Here are some of the commands that you'll need:

- install dependencies: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer install`
- run tests with phpunit: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer test`
- reformat using php-cs-fixer: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer cs-fix`
- install dependencies: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer install`
- run tests with phpunit: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer test`
- reformat using php-cs-fixer: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer cs-fix`
- reformat the rest with prettier: `docker run -it --rm -v $PWD:/app -w /app tmknom/prettier --write .`
- analyse with phpstan: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.2 composer phpstan`
- analyse with phpstan: `docker run -it --rm -v $PWD:/app -w /app chialab/php-dev:8.4 composer phpstan`
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
"description": "PHP data transfer objects",
"license": "MIT",
"require": {
"php": ">=8.2",
"php": ">=8.3",
"ext-json": "*",
"illuminate/support": "^9.0|^10.0|^11.0|^12.0",
"spatie/macroable": "^1.0|^2.0",
"tenantcloud/php-standard": "1.2 || ^1.4 || ^2.0"
},
"require-dev": {
"pestphp/pest": "^2.8|^3.8",
"pestphp/pest": "^3.8",
"orchestra/testbench": "^7.0|^8.5|^9.0|^10.0",
"php-cs-fixer/shim": "^3.54",
"tenantcloud/php-cs-fixer-rule-sets": "~3.3.1",
"phpstan/phpstan": "~1.10.21|^2.1.17",
"phpstan/phpstan-phpunit": "^1.3|^2.0",
"phpstan/phpstan-webmozart-assert": "^1.2|^2.0",
"phpstan/phpstan-mockery": "^1.1|^2.0"
"php-cs-fixer/shim": "^3.75",
"tenantcloud/php-cs-fixer-rule-sets": "~3.4.1",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpstan/phpstan-mockery": "^2.0"
},
"autoload": {
"psr-4": {
Expand All @@ -32,7 +32,7 @@
"scripts": {
"test": "vendor/bin/pest",
"coverage": "XDEBUG_MODE=coverage vendor/bin/pest --coverage-html coverage",
"cs-fix": "vendor/bin/php-cs-fixer fix -v --show-progress=dots",
"cs-fix": "PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix -v --show-progress=dots",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=2G"
},
"minimum-stability": "stable",
Expand Down
3 changes: 2 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ parameters:
- src

ignoreErrors:
-'#Unsafe usage of new static\(\)\.#i'
- '#Unsafe usage of new static\(\)\.#i'
- '#Unsafe usage of new static\(\) in abstract class .* in static method create\(\).#'