Skip to content

remove array in config file seems not working #690

@giacomomasseron

Description

@giacomomasseron
Q A
Bug report? yes
Feature request? no
Library version 2.11.0

Hi,
I have this remove array in config/insights.php

'remove' => [
    AlphabeticallySortedUsesSniff::class,
    DeclareStrictTypesSniff::class,
    DisallowMixedTypeHintSniff::class,
    ForbiddenDefineFunctions::class,
    ForbiddenNormalClasses::class,
    ForbiddenTraits::class,
    ParameterTypeHintSniff::class,
    PropertyTypeHintSniff::class,
    ReturnTypeHintSniff::class,
    UselessFunctionDocCommentSniff::class,
    SuperfluousInterfaceNamingSniff::class,
    SuperfluousTraitNamingSniff::class,
    SuperfluousExceptionNamingSniff::class,
    SuperfluousAbstractClassNamingSniff::class,
    ForbiddenPublicPropertySniff::class,
    ForbiddenSetterSniff::class,
    InlineDocCommentDeclarationSniff::class,
    OrderedImportsFixer::class,
    ClassDefinitionFixer::class,
    BracesFixer::class,
    ScopeClosingBraceSniff::class,
    DocCommentSpacingSniff::class,
],

As you can see there is the ForbiddenNormalClasses::class string.

When I exeute the command, I get this message:

[Architecture] Normal classes are forbidden. Classes must be final or abstract:
  app/....php

Am I doing something wrong? It's supposed to not get this message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions