ocramius/finalizer
A simple utility library that checks for PHP classes that should or shouldn't be marked as final
Maintainers
Requires
- php: ~5.6|~7.0
- symfony/console: ~2.6|~3.0
Requires (Dev)
- phpunit/phpunit: ~4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 20666a849f054579e027bdcd6ac28682b9cb1122
- Marco Pivetta <ocramius.woop@gmail.com>
This package is auto-updated.
Last update: 2021-09-19 02:10:54 UTC
README
This library aims at providing simple tools that help deciding whether
a class should or shouldn't be declared as final.
👁 Build Status
👁 Scrutinizer Code Quality
👁 Code Coverage
👁 Latest Stable Version
👁 Latest Unstable Version
Help/Support
Installation
Install via composer:
php composer.phar require ocramius/finalizer:~1.0
Usage
In your console, simply type:
./vendor/bin/finalizer finalizer:check-final-classes path/to/directory ./vendor/bin/finalizer finalizer:check-final-classes also/supports multiple/directories as/parameters
Note that finalizer will take decisions on whether classes should or
shouldn't be final depending on the classes defined in the directories
that you passed to it.
Additionally, be aware that finalizer will (in its current state) require
any of the PHP or Hack files in the given directories and include them via
require_once.
Reference
If you need to know more about why I wrote this library, and what kind of
decisions it is doing, then please read
this blogpost about the usage of the final keyword.
