Skip to content

Commit

Permalink
phpstan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed Nov 10, 2021
1 parent 2ae5fa9 commit 43ecf42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
level: 2
excludes_analyse:
excludePaths:
- %rootDir%/../../../src/ProviderFactory.php
- %rootDir%/../../../src/Providers/Bitbucket.php
2 changes: 1 addition & 1 deletion src/CosyComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ public function run()
}
}
}
if (empty($data)) {
if (!count($data)) {
$this->log('No updates that have not already been pushed.');
$this->cleanUp();
return;
Expand Down
1 change: 1 addition & 0 deletions src/ProcessWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function setExecutor(CommandExecuter $executor)

public function run($callback = null/*, array $env = array()*/)
{
$env = 1 < \func_num_args() ? func_get_arg(1) : null;
if (empty($env)) {
$env = [];
}
Expand Down

0 comments on commit 43ecf42

Please sign in to comment.