Skip to content

Commit

Permalink
feat: Require PHP 8.1 minimum
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Requires PHP 8.1 minimum
  • Loading branch information
ambroisemaupate committed Dec 2, 2023
1 parent c249f37 commit 2fc0299
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 32 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.0', '8.1']
php-version: ['8.1', '8.2', '8.3']
steps:
- uses: shivammathur/setup-php@v2
with:
Expand All @@ -42,23 +42,10 @@ jobs:
run: |
vendor/bin/atoum -d ./lib/Documents/tests
vendor/bin/atoum -f ./lib/EntityGenerator/tests/units/*
vendor/bin/phpunit -v lib/Models/tests
- name: Run PHP Code Sniffer
run: |
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/DocGenerator/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Documents/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/DtsGenerator/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/EntityGenerator/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Jwt/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Markdown/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Models/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/OpenId/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Random/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCompatBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizCoreBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizFontBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizRozierBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/RoadizUserBundle/src
php -d "memory_limit=-1" vendor/bin/phpcbf -p ./lib/Rozier/src
php -d "memory_limit=-1" vendor/bin/phpcs --report=full -p
- name: Run PHP Stan
run: |
php -d "memory_limit=-1" vendor/bin/phpstan analyse -c phpstan.neon
Expand All @@ -70,3 +57,4 @@ jobs:
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizRozierBundle/templates
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizFontBundle/templates
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizCoreBundle/templates
php -d "memory_limit=-1" bin/console lint:twig ./lib/RoadizTwoFactorBundle/templates
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
],
"type": "project",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-ctype": "*",
"ext-dom": "*",
"ext-fileinfo": "*",
Expand Down
2 changes: 1 addition & 1 deletion lib/DocGenerator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Roadiz sub-package which generates Markdown documentation skeleton based on your schema",
"type": "library",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"roadiz/nodetype-contracts": "~1.1.2",
"symfony/translation": "5.4.*",
"symfony/http-foundation": "5.4.*"
Expand Down
2 changes: 1 addition & 1 deletion lib/Documents/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-json": "*",
"ext-gd": "*",
"ext-dom": "*",
Expand Down
2 changes: 1 addition & 1 deletion lib/EntityGenerator/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-json": "*",
"roadiz/nodetype-contracts": "~1.1.2",
"symfony/string": "5.4.*",
Expand Down
2 changes: 1 addition & 1 deletion lib/Jwt/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"lcobucci/jwt": "^4.1",
"guzzlehttp/guzzle": "^7.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/Markdown/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Markdown services and Twig extension for Roadiz",
"type": "library",
"require": {
"php": ">=8.0",
"php": ">=8.1",
"league/commonmark": "^2.2.0",
"twig/twig": "^3.1",
"doctrine/collections": ">=1.6",
Expand Down
2 changes: 1 addition & 1 deletion lib/Models/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"doctrine/orm": "^2.14.1 < 2.17",
"jms/serializer": "^3.9.0",
"symfony/string": "5.4.*",
Expand Down
2 changes: 1 addition & 1 deletion lib/OpenId/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-json": "*",
"lcobucci/jwt": "^4.1",
"roadiz/jwt": "2.2.x-dev",
Expand Down
2 changes: 1 addition & 1 deletion lib/Random/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"psr/log": ">=1.1",
"ext-openssl": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizCompatBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"pimple/pimple": "^3.3.1",
"roadiz/core-bundle": "2.2.x-dev",
"roadiz/openid": "2.2.x-dev",
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizCoreBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-ctype": "*",
"ext-iconv": "*",
"ext-zip": "*",
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizFontBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2.8.1",
"doctrine/doctrine-migrations-bundle": "^3.1",
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizRozierBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"symfony/framework-bundle": "5.4.*",
"roadiz/core-bundle": "2.2.x-dev",
"roadiz/rozier": "2.2.x-dev",
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizTwoFactorBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"doctrine/orm": "^2.14.1 < 2.17",
"endroid/qr-code": "^4.0",
"roadiz/core-bundle": "2.2.x-dev",
Expand Down
2 changes: 1 addition & 1 deletion lib/RoadizUserBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"api-platform/core": "~2.7.0",
"symfony/framework-bundle": "5.4.*",
"symfony/rate-limiter": "5.4.*",
Expand Down
2 changes: 1 addition & 1 deletion lib/Rozier/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.0",
"php": ">=8.1",
"ext-zip": "*",
"doctrine/orm": "^2.14.1 < 2.17",
"guzzlehttp/guzzle": "^7.2.0",
Expand Down

0 comments on commit 2fc0299

Please sign in to comment.