Skip to content

PHPStan rules for detecting usage of pseudo-private functions, classes, and methods.

License

Notifications You must be signed in to change notification settings

swissspidy/phpstan-no-private

Repository files navigation

Detect usage of pseudo-private code elements

Build Latest Stable Version License

This PHPStan extension emits deprecation warnings on code which uses properties/functions/methods/classes which are annotated as @access private.

Installation

To use this extension, require it in Composer:

composer require --dev swissspidy/phpstan-no-private

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include rules.neon in your project's PHPStan config:

includes:
    - vendor/swissspidy/phpstan-no-private/rules.neon

Credits

This project is a fork of the excellent phpstan/phpstan-deprecation-rules, which provides rules that detect usage of deprecated classes, methods, properties, constants and traits.

About

PHPStan rules for detecting usage of pseudo-private functions, classes, and methods.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages