Skip to content

Commit 0a97fa7

Browse files
committed
securit update
1 parent a512753 commit 0a97fa7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ matrix:
5555
env: SYMFONY_VERSION=~4.2
5656

5757
before_install:
58-
- curl -s https://getcomposer.org/installer | php
59-
- php composer.phar require symfony/symfony:${SYMFONY_VERSION} --no-update
60-
- php -dmemory_limit=-1 composer.phar update
58+
- composer require roave/security-advisories:dev-master --no-update
59+
- composer require symfony/symfony:${SYMFONY_VERSION} --no-update
60+
- php -dmemory_limit=-1 composer update
6161

6262
script:
6363
- cat composer.json | grep symfony\/symfony

Tests/SymfonyRollbarBundle/Twig/RollbarExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testRollbarJs($env, $isDisabled)
4242
$this->assertNotEmpty($list);
4343

4444
$function = $list[0];
45-
$this->assertInstanceOf(\Twig_SimpleFunction::class, $function);
45+
$this->assertInstanceOf(\Twig\TwigFunction::class, $function);
4646

4747
$output = $rollbarTwig->rollbarJs();
4848

Twig/RollbarExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Symfony\Component\DependencyInjection\ContainerInterface;
77
use SymfonyRollbarBundle\DependencyInjection\SymfonyRollbarExtension;
88

9-
class RollbarExtension extends \Twig_Extension
9+
class RollbarExtension extends \Twig\Extension\AbstractExtension
1010
{
1111
/**
1212
* @var \Symfony\Component\DependencyInjection\ContainerInterface
@@ -48,7 +48,7 @@ public function getFunctions()
4848
}
4949

5050
return [
51-
new \Twig_SimpleFunction('rollbarJs', [$this, 'rollbarJs'], [
51+
new \Twig\TwigFunction('rollbarJs', [$this, 'rollbarJs'], [
5252
'is_safe' => ['html'],
5353
]),
5454
];

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"squizlabs/php_codesniffer": "^3.2",
4545
"matthiasnoback/symfony-dependency-injection-test": "^1.2||^2.3",
4646
"symfony/phpunit-bridge": "^4.0",
47-
"twig/twig": "^1.35||^2.4"
47+
"twig/twig": "^1.38||^2.7"
4848
},
4949
"scripts": {
5050
"test": [

0 commit comments

Comments
 (0)