PHPStan/configuration: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
Here is a configuration I used during a quality audit for the Meza project
Here is a configuration I used during a quality audit for a large installed base of extensions
{{Collapsible
{{Collapsible
| visible_text= sample configuration for testing many extensions
| visible_text= sample configuration for testing many extensions
Line 11: Line 11:
editorUrlTitle: '%%relFile%%:%%line%%'
editorUrlTitle: '%%relFile%%:%%line%%'
# phpVersion: 70400 # PHP 7.4
# phpVersion: 70400 # PHP 7.4
## Target a particular PHP version for compliance (really only works if your analysis is running that version)
phpVersion: 80100 # PHP 8.1
phpVersion: 80100 # PHP 8.1
level: 9
level: 9
Line 132: Line 133:
</syntaxhighlight>
</syntaxhighlight>
}}
}}
PHPStan offers many '[https://phpstan.org/user-guide/output-format output formats]' (and you can write your own too). The 'raw' format is probably most like what you get from [[Phan]]