Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test with php 8 #817

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -21,7 +21,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 @@ -38,7 +38,7 @@
"symfony/yaml": "^3.4 || ^4.3 || ^5.0",
"symfony/phpunit-bridge": "^5.0",
"liip/rmt": "^1.3",
"phpunit/phpunit": "^7.0"
"phpunit/phpunit": "^7.0 || ^8.0"
},
"suggest": {
"symfony/yaml": "^3.4 || ^4.3 || ^5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function setUp(): void
$this->metadata = $this->dm->getClassMetadata(Article::class);
}

public function tearDown()
public function tearDown(): void
{
$this->removeTestNode();
}
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 @@ -88,7 +88,7 @@ public function resetFunctionalNode(DocumentManager $dm)
return $node;
}

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