Fixed an issue where an uninitialized response body causes problems #708
Workflow file for this run
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: "Static analysis" | |
on: | |
push: | |
pull_request: | |
jobs: | |
static-analysis: | |
name: "Static analysis" | |
runs-on: "ubuntu-latest" | |
strategy: | |
matrix: | |
php-version: | |
- "8.1" | |
steps: | |
- name: "Checkout code" | |
uses: "actions/checkout@v4" | |
- name: "Setup PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "${{ matrix.php-version }}" | |
ini-values: "memory_limit=-1" | |
tools: composer:v2 | |
coverage: none | |
- name: "Install dependencies" | |
uses: nick-invision/[email protected] | |
with: | |
timeout_minutes: 5 | |
max_attempts: 5 | |
command: >- | |
composer install | |
--prefer-dist | |
--no-interaction | |
--no-progress | |
- name: "Run analysis" | |
run: >- | |
./vendor/bin/phpstan analyze src | |
--no-progress | |
--memory-limit=-1 | |
-c phpstan.neon |