Skip to content

Commit fdb99b2

Browse files
committed
Support PHP 7.3 - 8.0
1 parent 00275cc commit fdb99b2

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.travis.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,17 @@ os:
55
dist: "bionic"
66

77
php:
8-
# giacocorsiglia/stubs-generator does not support PHP 7.0
8+
# - "8.1"
9+
- "8.0"
910
- "7.4"
1011
- "7.3"
11-
- "7.2"
12-
- "7.1"
13-
# # PHP 8.0
14-
# - "nightly"
1512

1613
cache:
1714
directories:
1815
- "$HOME/.composer/cache"
1916

2017
before_install:
2118
- "phpenv config-rm xdebug.ini"
22-
- "composer self-update --1"
2319
- "composer validate --strict"
2420

2521
install:
@@ -42,11 +38,6 @@ install:
4238

4339
before_script:
4440
- "cat ./source/wordpress/wp-includes/version.php"
45-
- |
46-
if dpkg --compare-versions "$(phpenv version-name)" ge "7.4"; then
47-
echo "Hiding deprecated errors in generate-stubs ..."
48-
sed -i -e '3s/^/error_reporting(E_ALL ^ E_DEPRECATED);/' ./vendor/giacocorsiglia/stubs-generator/bin/generate-stubs
49-
fi
5041

5142
script:
5243
# Generate stubs

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"giacocorsiglia/wordpress-stubs": "*"
1313
},
1414
"require-dev": {
15-
"php": "~7.1",
15+
"php": "~7.3 || ~8.0",
1616
"php-stubs/generator": "^0.7.0",
1717
"nikic/php-parser": "< 4.12.0"
1818
},

0 commit comments

Comments
 (0)