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

Installs: 8 824

Dependents: 1

Suggesters: 1

Security: 0

Stars: 4

Watchers: 3

Forks: 1

Open Issues: 0


v0.2.0 2023-05-22 09:48 UTC

This package is auto-updated.

Last update: 2024-02-06 13:36:50 UTC


Build Latest Stable Version License

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


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:

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


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.