Skip to content

Commit f414320

Browse files
authored
Merge pull request #1042 from mike42/php8-compat
Change supported php versions, apply 8.0 fixes and build environment changes
2 parents 33864ee + 1193507 commit f414320

File tree

12 files changed

+965
-386
lines changed

12 files changed

+965
-386
lines changed

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
---
2-
dist: trusty
2+
dist: xenial
33
sudo: required
44

55
language: php
66

77
php:
8-
- 7.0
9-
- 7.1
10-
- 7.2
11-
- 7.3
12-
- 7.4
8+
- '7.3'
9+
- '7.4'
10+
- '8.0'
1311
- nightly
1412

1513
matrix:
@@ -25,7 +23,7 @@ install:
2523

2624
before_script:
2725
# Install 'imagick' plugin
28-
- bash -c 'if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then printf "\n" | pecl install imagick; fi'
26+
- bash -c 'if [[ $TRAVIS_PHP_VERSION != 8* ]] && [[ $TRAVIS_PHP_VERSION != "nightly" ]] ; then printf "\n" | pecl install imagick; fi'
2927
# Directory for coverage report
3028
- mkdir -p build/logs/
3129

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ If you haven't used `composer` before, you can read about it at [getcomposer.org
178178

179179
This project has few hard dependencies:
180180

181-
- PHP 7.0 or newer.
181+
- PHP 7.3 or newer.
182182
- `json` extension, used to load bundled printer definitions (see [documentation](https://www.php.net/manual/en/book.json.php))
183183
- `intl` extension, used for character encoding (see [documentation](https://www.php.net/manual/en/book.intl.php))
184184
- `zlib` extension, used for de-compressing bundled resources (see [documentation](https://www.php.net/manual/en/book.zlib.php)).
@@ -552,7 +552,7 @@ This code is MIT licensed, and you are encouraged to contribute any modification
552552

553553
For development, it's suggested that you load `imagick`, `gd` and `Xdebug` PHP extensions.
554554

555-
The tests are executed on [Travis CI](https://travis-ci.org/mike42/escpos-php) over PHP 7.0, 7.1, 7.2 and 7.3. Older versions of PHP are not supported in current release, nor is HHVM.
555+
The tests are executed on [Travis CI](https://travis-ci.org/mike42/escpos-php) over PHP 7.3, 7.4 and 8.0. Older versions of PHP are not supported in the current release, nor is HHVM.
556556

557557
Fetch a copy of this code and load dependencies with composer:
558558

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
],
1919
"config": {
2020
"platform": {
21-
"php": "7.0.0"
21+
"php": "7.3.0"
2222
}
2323
},
2424
"require" : {
25-
"php" : ">=7.0.0",
25+
"php" : ">=7.3.0",
2626
"ext-json": "*",
2727
"ext-intl": "*",
2828
"ext-zlib": "*",
@@ -33,7 +33,7 @@
3333
"ext-gd" : "Used for image printing if present."
3434
},
3535
"require-dev" : {
36-
"phpunit/phpunit" : "^6.5",
36+
"phpunit/phpunit" : "^9",
3737
"squizlabs/php_codesniffer" : "^3.3"
3838
},
3939
"autoload" : {

0 commit comments

Comments
 (0)