Skip to content

Lint PHP

Actions
Run PHP s built-in syntax check on files
v1
Latest
Star (0)

Tags

 (1)

lint-php-action

Runs PHP's built-in syntax check on your source code. Adds error annotations on any files with problems.

Inputs

Input Required Default Description
php-version no latest What version pf PHP to test with. Any version supported by shivammathur/setup-php should work.
file-extensions no php Comma-separated list of PHP file extensions (e.g. php, inc)

Example

See self-test.yml for up-to-date examples.

name: Lint
on:
  pull_request:
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: firehed/lint-php-action@v1

Lint PHP is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run PHP s built-in syntax check on files
v1
Latest

Tags

 (1)

Lint PHP is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.