Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove array in config file seems not working #690

Open
giacomomasseron opened this issue Aug 17, 2024 · 0 comments
Open

remove array in config file seems not working #690

giacomomasseron opened this issue Aug 17, 2024 · 0 comments

Comments

@giacomomasseron
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant