소스 검색

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