Skip to content

Commit

Permalink
Support PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrokeil committed Dec 18, 2020
1 parent fd92e9e commit 71b386b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of `prooph/php-cs-fixer-config`.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2020 prooph software GmbH <[email protected]>
* (c) 2016-2020 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
22 changes: 21 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ matrix:
- php: 7.2
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.3
env:
- DEPENDENCIES=""
- TEST_COVERAGE=true
- php: 7.3
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 7.4
env:
- DEPENDENCIES=""
- TEST_COVERAGE=true
- php: 7.4
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- php: 8.0
env:
- DEPENDENCIES=""
- php: 8.0
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"

cache:
directories:
Expand All @@ -31,7 +51,7 @@ before_script:

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi
- ./vendor/bin/php-cs-fixer fix -v --diff --dry-run
- if [[ $TEST_COVERAGE == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi

after_success:
- if [[ $TEST_COVERAGE == 'true' ]]; then php vendor/bin/coveralls -v; fi
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
}
],
"require": {
"php": "^7.1",
"friendsofphp/php-cs-fixer": "^2.16.3"
"php": "^7.1 || ^8.0",
"friendsofphp/php-cs-fixer": "^2.17.1"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpunit/phpunit": "^7.5 || ^9.5",
"satooshi/php-coveralls": "^1.0"
},
"autoload": {
Expand Down
4 changes: 2 additions & 2 deletions src/Prooph.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of `prooph/php-cs-fixer-config`.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2020 prooph software GmbH <[email protected]>
* (c) 2016-2020 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down
4 changes: 2 additions & 2 deletions tests/ProophTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

/**
* This file is part of `prooph/php-cs-fixer-config`.
* (c) 2016-2018 prooph software GmbH <[email protected]>
* (c) 2016-2018 Sascha-Oliver Prolic <[email protected]>
* (c) 2016-2020 prooph software GmbH <[email protected]>
* (c) 2016-2020 Sascha-Oliver Prolic <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
Expand Down

0 comments on commit 71b386b

Please sign in to comment.