Skip to content

Benefit from static analysis #52

Open
@szepeviktor

Description

@szepeviktor

Hello!
You may reach very robust code by using @phpstan

phpstan.neon.dist

#$ composer require --dev phpstan/phpstan-shim
#$ vendor/bin/phpstan analyze

includes:
    - phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
    level: 2
#    level: 4
#    level: max
    inferPrivatePropertyTypeFromConstructor: true
    paths:
        - %currentWorkingDirectory%/src/
#        - %currentWorkingDirectory%/test/
    ignoreErrors:
        #
        # These are way too easy to fix!
        - '#^Variable \$\S+ might not be defined\.$#'
        - '#^Access to an undefined property WebimpressCodingStandard\\\S+\.$#'

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions