Change buildForPaymentsMethodList
signature: amount
and currency
are optional
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHPStan | |
on: | |
pull_request: | |
paths: | |
- '**.php' | |
- 'phpstan.neon.dist' | |
permissions: | |
contents: read | |
jobs: | |
phpstan: | |
name: phpstan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP for PHPStan | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
extensions: mbstring, pdo, xml | |
- name: Install PHPStan dependencies | |
run: composer install --no-cache --no-interaction --no-progress --ignore-platform-reqs | |
- name: Run PHPStan | |
run: | | |
./vendor/bin/phpstan --error-format=github analyse src/ | |
exit_code=$? | |
if [ $exit_code -ne 0 ]; then | |
echo "PHPStan analysis failed with exit code $exit_code" | |
exit $exit_code | |
fi |