8000 [PhpUnitBridge] Fix parse error on PHP 5.3 · symfony/symfony@c307ff8 · GitHub
[go: up one dir, main page]

Skip to content

Commit c307ff8

Browse files
[PhpUnitBridge] Fix parse error on PHP 5.3
1 parent 65b6013 commit c307ff8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ $getEnvVar = function ($name, $default = false) {
3535
}
3636
}
3737
if (false !== $phpunitConfig) {
38-
$var = (new DOMXpath($phpunitConfig))->query('//php/env[@name="'.$name.'"]')[0];
38+
$var = new DOMXpath($phpunitConfig);
39+
$var = $var->query('//php/env[@name="'.$name.'"]')[0];
3940
if ($var) {
4041
return $var->getAttribute('value');
4142
}

0 commit comments

Comments
 (0)
0