Skip to content

(chore): remove path #6

(chore): remove path

(chore): remove path #6

Workflow file for this run

name: PHPStan
on:
- workflow_call
jobs:
phpstan:
name: phpstan
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.YARD_BOT_PAT }}
- name: Install composer dependencies
run: composer install --prefer-dist --no-interaction
- name: Dirty fix for previously defined function (packages using php-stubs)
run: [ -f ./vendor/php-stubs/wordpress-stubs/wordpress-stubs.php ] && sed -i -e 's#function __(#function ____(#' ./vendor/php-stubs/wordpress-stubs/wordpress-stubs.php

Check failure on line 29 in .github/workflows/phpstan.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/phpstan.yml

Invalid workflow file

You have an error in your yaml syntax on line 29
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github