1
0
Fork 0

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

pull/7913/head
Fred Emmott 2019-02-01 11:20:34 -08:00
parent 1b196720bf
commit bac2ef3dfd
No known key found for this signature in database
GPG Key ID: 06C22A9D789FCA28
1 changed files with 2 additions and 1 deletions

View File

@ -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');
}