Skip to content

Close file handle after each write, refs #1862, refs #1860, refs #1634 #781

Close file handle after each write, refs #1862, refs #1860, refs #1634

Close file handle after each write, refs #1862, refs #1860, refs #1634 #781

Workflow file for this run

name: "PHP Lint"
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
tests:
name: "Lint"
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- "7.2"
- "8.3"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "none"
extensions: "intl"
ini-values: "memory_limit=-1"
php-version: "${{ matrix.php-version }}"
- name: "Lint PHP files"
run: "find src/ -type f -name '*.php' -print0 | xargs -0 -L1 -P4 -- php -l -f"