diff options
| author | 2024-06-09 20:32:12 +0200 | |
|---|---|---|
| committer | 2024-06-09 20:32:12 +0200 | |
| commit | 5b28a35003a015e29770094932157f13a3f7f5c0 (patch) | |
| tree | 4cbe4100379ca0d148115ad31f5a1c0c95ff7c80 /phpstan-next.neon | |
| parent | e98c57841b843ed881f06ce6ed1c9c89942c27b8 (diff) | |
Pass PHPStan level 9 (#6544)
* More PHPStan
* More, passing
* 4 more files
* Update to PHPStan 1.11.4
Needed for fixed bug: Consider numeric-string types after string concat
https://github.com/phpstan/phpstan/releases/tag/1.11.4
* Pass PHPStan level 9
Start tracking booleansInConditions
* Fix mark as read
* Fix doctype
* ctype_digit
Diffstat (limited to 'phpstan-next.neon')
| -rw-r--r-- | phpstan-next.neon | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/phpstan-next.neon b/phpstan-next.neon index 0cc7f5eac..aa8dc678a 100644 --- a/phpstan-next.neon +++ b/phpstan-next.neon @@ -2,17 +2,40 @@ includes: - phpstan.neon parameters: - level: 9 + strictRules: + booleansInConditions: true + ignoreErrors: + - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#' excludePaths: analyse: # TODO: Update files below and remove them from this list - - app/Controllers/configureController.php + - app/Controllers/feedController.php - app/Controllers/importExportController.php - - app/Models/DatabaseDAO.php + - app/Controllers/subscriptionController.php + - app/Controllers/tagController.php + - app/FreshRSS.php + - app/Models/CategoryDAO.php + - app/Models/CategoryDAOSQLite.php + - app/Models/DatabaseDAOSQLite.php - app/Models/Entry.php + - app/Models/EntryDAO.php + - app/Models/EntryDAOSQLite.php - app/Models/Feed.php + - app/Models/FeedDAO.php + - app/Models/FeedDAOSQLite.php + - app/Models/FormAuth.php + - app/Models/LogDAO.php + - app/Models/TagDAO.php + - app/Models/Themes.php + - app/Services/ExportService.php - app/Services/ImportService.php - app/views/configure/archiving.phtml - - app/views/helpers/feed/update.phtml - - lib/Minz/Helper.php - - lib/Minz/Request.php + - app/views/configure/queries.phtml + - app/views/configure/query.phtml + - app/views/helpers/stream-footer.phtml + - app/views/stats/repartition.phtml + - app/views/subscription/feed.phtml + - cli/CliOptionsParser.php + - cli/create-user.php + - cli/update-user.php + - lib/lib_rss.php |
