Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4be7dca

Browse files
committed
Use php 8.0 for tools, test code on 8.0 and more
1 parent ff4b005 commit 4be7dca

File tree

4 files changed

+1952
-150
lines changed

4 files changed

+1952
-150
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
matrix:
2020
operating-system: [ ubuntu-latest ]
21-
php-versions: [ '7.2', '7.3', '7.4', '8.0', '8.1' ]
21+
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
2222
wp: [ '5.4', '5.5', '5.6', '5.7', '5.8', '5.9', '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', 'latest' ]
2323
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with WP ${{ matrix.wp }}
2424
steps:
@@ -33,7 +33,7 @@ jobs:
3333
tools: psalm, phpcbf, phpcs, phpunit:5.7.27
3434

3535
- name: Install all depenencies
36-
run: composer install --ignore-platform-reqs
36+
run: composer update
3737

3838
- name: Install WP Tests
3939
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp }} true

‎composer.json‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"type" : "wordpress-plugin",
1313
"require" : {
14-
"php": ">=5.6.0",
14+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
1515
"composer/installers": "^1.10"
1616
},
1717
"require-dev": {
@@ -23,7 +23,10 @@
2323
"vimeo/psalm": "^4.6",
2424
"wp-coding-standards/wpcs": "^2.3",
2525
"overtrue/phplint": "^2.3",
26-
"wp-phpunit/wp-phpunit": "^6.4"
26+
"wp-phpunit/wp-phpunit": "^6.4",
27+
"yoast/phpunit-polyfills": "^1.0",
28+
"phpspec/prophecy": "^1.19",
29+
"phpspec/prophecy-phpunit": "^2.2"
2730
},
2831
"scripts": {
2932
"cs": "./vendor/bin/phpcs",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /