symplify/static-detector

This package is abandoned and no longer maintained. The author suggests using the symplify/easy-ci package instead.

Detect static calls in your project

Maintainers

👁 TomasVotruba

Package info

github.com/deprecated-packages/static-detector

pkg:composer/symplify/static-detector

Statistics

Installs: 4 486

Dependents: 0

Suggesters: 0

Stars: 5

9.4.7 2021-07-03 10:41 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 617d5a5f40c6eb06a366ae19f8590209caee1b45

This package is auto-updated.

Last update: 2021-07-03 11:22:53 UTC


README

👁 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.