Skip to content

PHPStan level 2 #4103

@Alkarex

Description

@Alkarex

PHPStan is an automated scanner, which reports code that could be improved https://phpstan.org

We already pass PHPStan level 1 since #4021

Usage:

# See https://getcomposer.org
composer install --prefer-dist
composer run-script phpstan

Now it would be nice to progress to PHPStan level 2 https://phpstan.org/user-guide/rule-levels

FreshRSS/phpstan.neon

Lines 2 to 3 in 77e9877

# TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
level: 1

# Manual override of the analyse level
vendor/bin/phpstan analyse . --level 2

Help welcome, and it is fine to send multiple PRs, each solving some of the PHPStan warnings.

Metadata

Metadata

Assignees

Labels

System careEverything related to system care

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions