Skip to content

Commit 0d2fd40

Browse files
sreichelkiatngcolinmollenhour
authored
Make php-8.1 minimum requirement (#4124)
* Rector: CQ - UnusedForeachValueToArrayKeysRector (#1) * Rector: CQ - UnusedForeachValueToArrayKeysRector See Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector * fixes + phpstan See fix at rector: rectorphp/rector-src#6164 * Revert "Rector: CQ - UnusedForeachValueToArrayKeysRector (#1)" This reverts commit 3d7eaf6. * Drop php7 support - updated workflows - phpstan baseline (will be fixed later) * Updated README.md (draft) * Update composer.json Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Update * update baseline * composer update * fix rector (unit tests) * fix rector (incomplete unit tests) * fix phpunit tests (null is not a valid value) * phpstan (unit tests) * fix php8 deprecation - https://php.watch/versions/8.0/libxml_disable_entity_loader-deprecation * phpunit (comment test - doesNotPerformAssertions) * phpcs-fixer * removed libxml_disable_entity_loader calls - https://php.watch/versions/8.0/libxml_disable_entity_loader-deprecation - On code that only runs on PHP 8.0 and later, it is now safe to remove all function calls * replace strftime with date - https://php.watch/versions/8.1/strftime-gmstrftime-deprecated#replacements * rector: RemoveParentCallWithoutParentRector * rector config * phpstan --------- Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> Co-authored-by: Colin Mollenhour <colin@mollenhour.com>
1 parent ec284ac commit 0d2fd40

File tree

23 files changed

+319
-238
lines changed

23 files changed

+319
-238
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.1
1818

1919
- name: Checkout code
2020
uses: actions/checkout@v4

.github/workflows/phpcs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.1
1818

1919
- name: Checkout code
2020
uses: actions/checkout@v4

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.1
1818

1919
- uses: actions/checkout@v4
2020

.github/workflows/phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
operating-system: [ubuntu-latest]
17-
php-versions: ['7.4', '8.4']
17+
php-versions: ['8.1', '8.4']
1818
mysql-version: ['5.7', '8.0', '8.4']
1919

2020
services:

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup PHP
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: 7.4
17+
php-version: 8.1
1818

1919
- name: Checkout code
2020
uses: actions/checkout@v4

.github/workflows/syntax-php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php: ['7.4', '8.4']
17+
php: ['8.1', '8.4']
1818

1919
name: PHP Syntax ${{ matrix.php }}
2020

0 commit comments

Comments
 (0)