Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

[READ-ONLY] Detect static calls in your project

License

Notifications You must be signed in to change notification settings

deprecated-packages/static-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Detector

Downloads total

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.

About

[READ-ONLY] Detect static calls in your project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages