Skip to content

PHPStan level 6 #4112

@Alkarex

Description

@Alkarex

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

We already pass PHPStan level 5 since #4110

Usage:

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

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

FreshRSS/phpstan.neon

Lines 2 to 3 in 1335a0e

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

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

Help welcome, and it is fine to send multiple PRs, each solving some of the PHPStan warnings (best if covering at least one or more files fully).

When you make more files pass Level 6, you can remove them (example) from our list of non-compliant files (cf. #5230 )

composer run-script phpstan-next

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions