mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-03 02:47:50 -05:00
* Fix most PHPDocs errors Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103 https://phpstan.org/writing-php-code/phpdoc-types * Avoid func_get_args Use variadic syntax instead https://php.net/manual/functions.arguments#functions.variable-arg-list And avoid dynamic functions names when possible to more easily identify calls and unused functions. Contributes to https://github.com/FreshRSS/FreshRSS/issues/4103 * PHPStan level 3 * PHPStand level 4 * Update default to PHPStan level 4 * Towards level 5 * Fix level 4 regression * Towards level 5 * Pass PHPStan level 5 * Towards level 6 * Remove erronenous regression from changelog https://github.com/FreshRSS/FreshRSS/pull/4116
26 lines
494 B
Plaintext
26 lines
494 B
Plaintext
parameters:
|
|
# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
|
|
level: 5
|
|
fileExtensions:
|
|
- php
|
|
- phtml
|
|
paths:
|
|
- .
|
|
excludePaths:
|
|
- lib/lib_phpQuery.php
|
|
- lib/PHPMailer/*
|
|
- lib/SimplePie/*
|
|
- node_modules/*
|
|
# TODO: include tests
|
|
- tests/*
|
|
- vendor/*
|
|
scanDirectories:
|
|
- lib/PHPMailer/
|
|
- lib/SimplePie/
|
|
bootstrapFiles:
|
|
- cli/_cli.php
|
|
- lib/favicons.php
|
|
- lib/lib_phpQuery.php
|
|
- lib/SimplePie/SimplePie.php
|
|
- app/SQL/install.sql.sqlite.php
|