Include a phpstan baseline without a custom phpstan.neon file

Migrated issue

Reported by: mstrelan

Related to !220 (merged)

Problem/Motivation

Currently if you want to use the generated baseline you need to create your own phpstan.neon file and include it yourself. It's not obvious to everyone that you need to do this, and it's not obvious what you should put in there. Instead we should automatically include the baseline in the default configuration.

Steps to reproduce

Proposed resolution

  • Add an include to the phpstan.neon template
  • touch the baseline file to create it if it doesn't exist, otherwise fallback to what is in the project repo

Projects with custom phpstan.neon files don't need to use the baseline if they don't want to, or can use a baseline at a different path.

Remaining tasks

User interface changes

API changes

Data model changes

Assignee Loading
Time tracking Loading