Skip to content

phpstan: Increase level to see and reduce code mess #56

@xalopp

Description

@xalopp
phpstan analyse --level=7 --no-progress -c .phpstan.neon --errorFormat=raw MO4 tests

complains about some type issues. $var = $phpcsFile->find*() returns int or false, so after the potential sanity check, $var should cast to int.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions