Explorar o código

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

Fred Emmott %!s(int64=6) %!d(string=hai) anos
pai
achega
bac2ef3dfd
Modificáronse 1 ficheiros con 2 adicións e 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');
         }