diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 967f79dcd..87cd149eb 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -53,4 +53,4 @@ jobs: - name: Run PHPStan run: | bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --with-all-dependencies - vendor/bin/phpstan analyse --configuration=phpstan/config.neon --error-format=checkstyle | cs2pr + vendor/bin/phpstan analyse --configuration=phpstan/config.neon || vendor/bin/phpstan analyse --configuration=phpstan/config.neon --error-format=checkstyle | cs2pr diff --git a/phpstan/config.neon b/phpstan/config.neon index 8b8bf62ce..d9bf7f8c6 100644 --- a/phpstan/config.neon +++ b/phpstan/config.neon @@ -27,12 +27,6 @@ parameters: # BC with older PHPUnit - '~^Call to an undefined static method PHPUnit\\Framework\\TestCase::setExpectedException\(\)\.$~' - - # hhvm should have support for $this in closures - - - count: 1 - message: '~^Using \$this inside anonymous function is prohibited because of PHP 5\.3 support\.$~' - path: '../tests/Composer/Test/Repository/PlatformRepositoryTest.php' paths: - ../src - ../tests diff --git a/src/Composer/Command/CreateProjectCommand.php b/src/Composer/Command/CreateProjectCommand.php index b872c557a..de6701ce4 100644 --- a/src/Composer/Command/CreateProjectCommand.php +++ b/src/Composer/Command/CreateProjectCommand.php @@ -310,7 +310,7 @@ EOT } $process = new ProcessExecutor($io); - $fs = new Filesystem($fs); + $fs = new Filesystem($process); if (!$fs->isAbsolutePath($directory)) { $directory = getcwd() . DIRECTORY_SEPARATOR . $directory; }