diff --git a/.travis.yml b/.travis.yml index d9eb81b..d57ae67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,14 @@ language: php php: - 5.5 - 5.6 -# - 7.0 -# - hhvm + - 7.0 + - 7.1 env: COVERAGE=0 matrix: include: - - php: 5.6 + - php: 7.1 env: COVERAGE=1 before_script: diff --git a/Tests/Twig/Extension/OneHydraExtensionTest.php b/Tests/Twig/Extension/OneHydraExtensionTest.php index 71a03a2..d2ce72d 100644 --- a/Tests/Twig/Extension/OneHydraExtensionTest.php +++ b/Tests/Twig/Extension/OneHydraExtensionTest.php @@ -40,7 +40,7 @@ public function testCheckThatTwigFunctionsAreRegistered() $twig->addExtension($extension); /** @var OneHydraExtension $ext */ - $ext = $twig->getExtension('onehydra_extension'); + $ext = $twig->getExtension(OneHydraExtension::class); $this->assertInstanceOf(OneHydraExtension::class, $ext); diff --git a/composer.json b/composer.json index 8a37863..bfe24a9 100644 --- a/composer.json +++ b/composer.json @@ -19,12 +19,12 @@ } ], "require": { - "php": ">=5.3.9", - "amara/onehydra": "~0.2.0", + "php": ">=5.5.0,<8.0", + "amara/onehydra": "~0.3.0", "symfony/framework-bundle": "~2.3|~3.0", "doctrine/orm": "~2.2,>=2.2.3,<2.5", "doctrine/doctrine-bundle": "~1.4", - "twig/twig": "~1.23|~2.0" + "twig/twig": "~1.26|~2.0" }, "require-dev": { "phpunit/phpunit": "~4.8"