Don't do (new Foo())->bar() - not 5.3-compatible

main
Fred Emmott 5 years ago
parent 1b196720bf
commit bac2ef3dfd
No known key found for this signature in database
GPG Key ID: 06C22A9D789FCA28

@ -49,7 +49,8 @@ class PlatformRepositoryTest extends TestCase {
$this->markTestSkipped('Test does not run on Windows');
return;
}
$hhvm = (new ExecutableFinder())->find('hhvm');
$finder = new ExecutableFinder();
$hhvm = $finder->find('hhvm');
if ($hhvm === null) {
$this->markTestSkipped('HHVM is not installed');
}

Loading…
Cancel
Save