Skip to content

Commit

Permalink
fix: Addressing file_exists null arg deprecation. (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk authored Dec 17, 2021
1 parent 3577279 commit 74a6328
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions src/WatcherCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ protected function getOptionsFromConfigFile(): array
{
$configFilePath = $this->getConfigFileLocation();

if (! $configFilePath) {
return [];
}

if (! file_exists($configFilePath)) {
return [];
}
Expand Down

0 comments on commit 74a6328

Please sign in to comment.