Skip to content

Commit 74a6328

Browse files
authored
fix: Addressing file_exists null arg deprecation. (#139)
1 parent 3577279 commit 74a6328

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Run PHP CS Fixer
1616
uses: docker://oskarstark/php-cs-fixer-ga
1717
with:
18-
args: --config=.php_cs.dist --allow-risky=yes
18+
args: --config=.php_cs.dist.php --allow-risky=yes
1919

2020
- name: Commit changes
2121
uses: stefanzweifel/git-auto-commit-action@v4
File renamed without changes.

src/WatcherCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ protected function getOptionsFromConfigFile(): array
5151
{
5252
$configFilePath = $this->getConfigFileLocation();
5353

54+
if (! $configFilePath) {
55+
return [];
56+
}
57+
5458
if (! file_exists($configFilePath)) {
5559
return [];
5660
}

0 commit comments

Comments
 (0)