Add a variable to specify phpstan level

Migrated issue

Reported by: mstrelan

Related to !222 (merged) !221 (merged)

Problem/Motivation

Sometimes you just want to increase the phpstan level without a custom phpstan.neon file

Steps to reproduce

Proposed resolution

Add a new variable _PHPSTAN_LEVEL that is passed to the command line with --level $_PHPSTAN_LEVEL. If the variable is not set or is an empty string we should omit this arg.

Remaining tasks

User interface changes

API changes

Data model changes

Assignee Loading
Time tracking Loading