phpstan-ga icon indicating copy to clipboard operation
phpstan-ga copied to clipboard

trigger_error is causing an error

Open garak opened this issue 4 years ago • 0 comments

I have a file with a line like the following

<?php
@\trigger_error('an error...', \E_USER_DEPRECATED);

Such file causes no errors in my local run of phpstan (version 0.12.90, the latest so far, with clean cache). When my GitHub action is run, instead, that line is causing an error (and the action fails).

This is the job definition:

phpstan:
    runs-on: ubuntu-20.04
    name: PHPStan
    steps:
        - name: Checkout
          uses: actions/checkout@v2
        - name: PHPStan
          uses: docker://oskarstark/phpstan-ga
          env:
              REQUIRE_DEV: true
          with:
              args: analyse

garak avatar Jun 24 '21 08:06 garak