Skip to content

Fix lex number at start of name followed by _ or $ #1012

Fix lex number at start of name followed by _ or $

Fix lex number at start of name followed by _ or $ #1012

name: Lint and analyse php files
on:
push:
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
lint-php:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '7.2' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Check coding-standard
run: composer run phpcs
- name: Validate composer.json and composer.lock
run: composer validate --strict
analyse-php:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '7.4' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- name: Analyse files with PHPStan
run: composer run phpstan
- name: Analyse files with Psalm
if: always()
run: composer run psalm -- --shepherd