Преглед изворни кода

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

Fred Emmott пре 6 година
родитељ
комит
bac2ef3dfd
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      tests/Composer/Test/Repository/PlatformRepositoryTest.php

+ 2 - 1
tests/Composer/Test/Repository/PlatformRepositoryTest.php

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