diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index 4cf285f..f55d1fa 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -15,7 +15,7 @@ jobs: - name: Run PHP CS Fixer uses: docker://oskarstark/php-cs-fixer-ga with: - args: --config=.php_cs.dist --allow-risky=yes + args: --config=.php_cs.dist.php --allow-risky=yes - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/.php_cs.dist b/.php_cs.dist.php similarity index 100% rename from .php_cs.dist rename to .php_cs.dist.php diff --git a/src/WatcherCommand.php b/src/WatcherCommand.php index aa952a6..8fa745e 100644 --- a/src/WatcherCommand.php +++ b/src/WatcherCommand.php @@ -51,6 +51,10 @@ protected function getOptionsFromConfigFile(): array { $configFilePath = $this->getConfigFileLocation(); + if (! $configFilePath) { + return []; + } + if (! file_exists($configFilePath)) { return []; }