migrify / static-detector
This package is abandoned and no longer maintained.
The author suggests using the symplify/static-detector package instead.
Detect static calls in your project
9.4.7
2021-07-03 10:41 UTC
Requires
- php: >=8.0
- nikic/php-parser: 4.10.5
- symfony/console: ^5.3
- symfony/dependency-injection: ^5.3
- symfony/http-kernel: ^5.3
- symplify/astral: ^9.4.7
- symplify/package-builder: ^9.4.7
- symplify/symplify-kernel: ^9.4.7
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2021-07-03 10:45:25 UTC
README
Detect static and its calls in your project!
Install
composer require symplify/static-detector --dev
Usage
vendor/bin/static-detector detect src
Configuration
Do you want to look only on specific classes? Just create static-detector.php config in your root and add filter them:
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symplify\StaticDetector\ValueObject\Option; return static function (ContainerConfigurator $containerConfigurator): void { $parameters = $containerConfigurator->parameters(); $parameters->set(Option::FILTER_CLASSES, ['*\\Helpers']); };
That's it :)
Report Issues
In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker
Contribute
The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.