Download the PHP package kenny1911/class-visibility-fixer without Composer
On this page you can find all versions of the php package kenny1911/class-visibility-fixer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package class-visibility-fixer
ClassVisibilityFixer
[ English | Русский ]
ClassVisibilityFixer is an extension for PHP-CS-Fixer that
automatically adds the @api, @internal and/or @psalm-internal annotation to classes.
Installation
Configure
Add ClassVisibilityFixer to your PHP-CS-Fixer configuration:
Usage
Then run PHP-CS-Fixer:
Settings
defaultVisibility— defines which annotation to add by default. Possible values:internal+psalm-internal(default value) — adds@internaland@psalm-internalannotations (including the namespace).internal— adds only@internalpsalm-internal— adds only@psalm-internal(including the namespace of the current class)api— adds@api
Example
Before:
After applying the fixer with the defaultVisibility: api setting:
After applying the fixer with the defaultVisibility: internal+psalm-internal setting:
License
This project is licensed under the MIT License.
Author
Developed by Kenny1911.
Similar Projects
- typhoon/check-visibility-psalm-plugin - A plugin for
Psalm with a similar purpose. It can be used together with
ClassVisibilityFixer.
All versions of class-visibility-fixer with dependencies
PHP Build Version
Package Version
The package kenny1911/class-visibility-fixer contains the following files
Loading the files please wait ...