Skip to content

Commit

Permalink
test with php 8
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu committed Dec 9, 2020
1 parent e7188aa commit 72d9b4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ php:
- 7.2
- 7.3
- 7.4
- 8.0

sudo: false

Expand Down Expand Up @@ -53,9 +54,13 @@ matrix:
env: TRANSPORT=doctrine_dbal STABILITY="dev"
- php: 7.4
env: TRANSPORT=jackrabbit STABILITY="dev"
- php: nightly
env: TRANSPORT=doctrine_dbal
- php: nightly
env: TRANSPORT=jackrabbit

before_install:
- phpenv config-rm xdebug.ini
- phpenv config-rm xdebug.ini || true
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; fi;
- if [ "$PHPBENCH" = "yes" ]; then composer require --no-update phpbench/phpbench=~0.16; fi;
- composer global require --no-progress --no-scripts --no-plugins symfony/flex
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.1",
"php": "^7.1 || ^8.0",
"doctrine/collections": "^1.0",
"doctrine/common": "^2.4 || ^3.0",
"doctrine/annotations": "^1.2",
Expand All @@ -30,7 +30,7 @@
"symfony/yaml": "^2.3 || ^3.0 || ^4.0 || ^5.0",
"symfony/phpunit-bridge": "^5.0",
"liip/rmt": "^1.2",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^7.0 || ^8.0"
},
"suggest": {
"symfony/yaml": "^3.4 || ^4.3 || ^5.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/ODM/PHPCR/PHPCRFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function resetFunctionalNode(DocumentManager $dm)
return $node;
}

public function tearDown()
public function tearDown(): void
{
foreach ($this->sessions as $session) {
$session->logout();
Expand Down

0 comments on commit 72d9b4a

Please sign in to comment.