Skip to content

Commit

Permalink
Add PHP8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Dec 21, 2020
1 parent ac2521f commit 1538792
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Expand Up @@ -3,14 +3,20 @@ language: php
php:
- 7.3
- 7.4
- 8.0

env:
global:
- COMPOSER_MEMORY_LIMIT=-1
- XDEBUG_MODE=coverage

cache:
directories:
- $HOME/.composer/cache

install:
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --no-interaction --prefer-dist
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require --no-interaction --prefer-dist --dev php-coveralls/php-coveralls
- travis_retry composer install --no-interaction --prefer-dist
- travis_retry composer require --no-interaction --prefer-dist --dev php-coveralls/php-coveralls

script: vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -12,7 +12,7 @@
"email": "dmitry.g.ivanov@gmail.com"
}],
"require": {
"php": "^7.3",
"php": "^7.3|^8.0",
"ext-dom": "*",
"ext-json": "*",
"ext-simplexml": "*",
Expand Down
6 changes: 3 additions & 3 deletions tests/debug/BacktraceAsStringTest/backtrace.txt
@@ -1,4 +1,4 @@
#0 backtrace_as_string() called at [/Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:47]
#1 Illuminated\Helpers\Tests\Debug\BacktraceAsStringTest->anotherExtraMethod() called at [/Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:37]
#2 Illuminated\Helpers\Tests\Debug\BacktraceAsStringTest->getBacktrace() called at [/Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:13]
#0 backtrace_as_string() called at [/Users/maind/Code/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:47]
#1 Illuminated\Helpers\Tests\Debug\BacktraceAsStringTest->anotherExtraMethod() called at [/Users/maind/Code/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:37]
#2 Illuminated\Helpers\Tests\Debug\BacktraceAsStringTest->getBacktrace() called at [/Users/maind/Code/illuminated/helper-functions/tests/debug/BacktraceAsStringTest.php:13]
#3 Illuminated\Helpers\Tests\Debug\BacktraceAsStringTest->it_returns_backtrace_as_string_without_args()
8 changes: 4 additions & 4 deletions tests/debug/MinimizedBacktraceAsStringTest/backtrace.txt
@@ -1,4 +1,4 @@
#0 /Applications/MAMP/htdocs/illuminated/helper-functions/src/debug.php:27
#1 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:47
#2 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:37
#3 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:13
#0 /Users/maind/Code/illuminated/helper-functions/src/debug.php:27
#1 /Users/maind/Code/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:47
#2 /Users/maind/Code/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:37
#3 /Users/maind/Code/illuminated/helper-functions/tests/debug/MinimizedBacktraceAsStringTest.php:13

0 comments on commit 1538792

Please sign in to comment.