Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
do not use short array syntax because of php <= 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toooni committed Mar 7, 2017
1 parent c4a12d3 commit add409b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Functional/Twig/UrlAutoConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UrlAutoConverterTest extends \PHPUnit_Framework_TestCase
public function testEscapedHtml()
{
if (method_exists('\Twig_Environment', 'createTemplate')) { // twig > 2.0
$twig = new \Twig_Environment(new \Twig_Loader_Array([]));
$twig = new \Twig_Environment(new \Twig_Loader_Array());
$twig->addExtension(new UrlAutoConverterTwigExtension());

$body = 'Hello <a href="javascript:alert(\'ups\');">name</a>!';
Expand Down

0 comments on commit add409b

Please sign in to comment.