Explorar el Código

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

Fred Emmott hace 6 años
padre
commit
bac2ef3dfd
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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');
         }