Skip to content

php-stan "passes" on internal error #24

Description

% pre-commit run --all-files php-stan
<a bunch of errors appear here>
% echo 'not a valid config file' >phpstan.neon
% pre-commit run --all-files php-stan
PHPStan..................................................................Passed
% pre-commit run --all-files --verbose php-stan
PHPStan..................................................................Passed
- hook id: php-stan
- duration: 0.76s

Begin PHPStan
Running command  vendor/bin/phpstan analyse ….php
────────────────────────────────────────────────────────────────────────────────
Note: Using configuration file …/phpstan.neon.

No rules detected

You have the following choices:

* while running the analyse option, use the --level option to adjust your rule level - the higher the stricter

* create your own custom ruleset by selecting which rules you want to check by copying the service definitions from the built
-in config level files in phar:///…/vendor/phpstan/phpstan/phpstan.phar/conf.
  * in this case, don't forget to define parameter customRulesetUsed in your config file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions