Skip to content

Commit

Permalink
chore: fix misc cs-fixer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Oct 3, 2024
1 parent 3c3fb00 commit 2b4efc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
"from the root of your ${{ github.repository }} repo:"
echo ""
echo " composer global require google/cloud-tools"
echo " ~/.composer/vendor/bin/php-tools cs-fixer ${{ github.repository }} --ref ${{ github.ref_name }}"
echo " ~/.composer/vendor/bin/php-tools cs-fixer ${{ github.repository }} --ref ${{ github.head_ref || github.ref_name }}"
echo ""
exit 1
fi
2 changes: 1 addition & 1 deletion src/Utils/Actions/RunCsFixerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($defaultWorkflow['on']['workflow_call']['inputs'] as $name => $inputOptions) {
$defaults[$name] = $inputOptions['default'] ?? '';
}
$options = array_merge($defaults, $job['with']);
$options = array_merge($defaults, $job['with'] ?? []);

if (str_starts_with($options['config'], 'GoogleCloudPlatform/php-tools/')) {
// use local file
Expand Down

0 comments on commit 2b4efc5

Please sign in to comment.