Skip to content

Add an option to check for non static dataprovider even without deprecation rules #162

Closed
@VincentLanglet

Description

@VincentLanglet

I saw #151 was added by @villfa to check for non static data provider.
But I don't have the check on my project.

If I understand correctly, it's only active if https://github.com/phpstan/phpstan-deprecation-rules is installed.
But I'd like to have this rule even if I don't use the deprecation-rules package.

Currently stricter analysis (https://phpstan.org/config-reference#stricter-analysis) with PHPStan is possible

  • By installing the strict-rules packages
  • By enabling manually some extra config options.

I'd like the same for the non-static check, ie: a config option to enable this rules (which would be automatically set to true if https://github.com/phpstan/phpstan-deprecation-rules is installed).

Is it possible ?
Is it already possible and I miss something ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions