Skip to content

Commit

Permalink
Upgrade requirements to php8 (#39)
Browse files Browse the repository at this point in the history
* Upgrade requirements to php8

* Bump travis ci version to 8.0

* Bump travis ci version to 8.0

* Bump travis ci version to 8.0.2

* Bump travis ci ubuntu version to xenial
  • Loading branch information
Oipnet authored Mar 4, 2021
1 parent 79fcf8b commit e88d320
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: php

dist: trusty
dist: xenial

sudo: false

php:
- 7.3.5
- 8.0.2

cache:
directories:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}
],
"require": {
"php": "^7.2.5",
"php": "^8.0",
"api-platform/core": "^2.1",
"doctrine/orm": "^2.4.5",
"doctrine/doctrine-bundle": "^1.6 || ^2.0",
"symfony/translation": "*",
"symfony/dependency-injection": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.3"
"phpunit/phpunit": "^9.5.2"
},
"prefer-stable": true,
"autoload": {
Expand Down
3 changes: 2 additions & 1 deletion tests/EventListener/AssignLocaleListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

namespace Locastic\ApiPlatformTranslationBundle\Tests\EventListener;

use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
use Doctrine\Common\EventArgs;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Locastic\ApiPlatformTranslationBundle\EventListener\AssignLocaleListener;
use Locastic\ApiPlatformTranslationBundle\Translation\Translator;
use Locastic\ApiPlatformTranslationBundle\Tests\Fixtures\DummyNotTranslatable;
Expand Down

0 comments on commit e88d320

Please sign in to comment.