Skip to content

Commit 199dee4

Browse files
committed
ConditionalTagsExtension - allow phpstan.collector tag
1 parent 8676d4c commit 199dee4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/DependencyInjection/ConditionalTagsExtension.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
use Nette\Schema\Expect;
88
use PHPStan\Analyser\TypeSpecifierFactory;
99
use PHPStan\Broker\BrokerFactory;
10+
use PHPStan\Collectors\RegistryFactory as CollectorRegistryFactory;
1011
use PHPStan\Parser\RichParser;
1112
use PHPStan\PhpDoc\TypeNodeResolverExtension;
12-
use PHPStan\Rules\RegistryFactory;
13+
use PHPStan\Rules\RegistryFactory as RuleRegistryFactory;
1314
use PHPStan\ShouldNotHappenException;
1415
use function count;
1516
use function sprintf;
@@ -27,12 +28,13 @@ public function getConfigSchema(): Nette\Schema\Schema
2728
BrokerFactory::DYNAMIC_STATIC_METHOD_RETURN_TYPE_EXTENSION_TAG => $bool,
2829
BrokerFactory::DYNAMIC_FUNCTION_RETURN_TYPE_EXTENSION_TAG => $bool,
2930
BrokerFactory::OPERATOR_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
30-
RegistryFactory::RULE_TAG => $bool,
31+
RuleRegistryFactory::RULE_TAG => $bool,
3132
TypeNodeResolverExtension::EXTENSION_TAG => $bool,
3233
TypeSpecifierFactory::FUNCTION_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
3334
TypeSpecifierFactory::METHOD_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
3435
TypeSpecifierFactory::STATIC_METHOD_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
3536
RichParser::VISITOR_SERVICE_TAG => $bool,
37+
CollectorRegistryFactory::COLLECTOR_TAG => $bool,
3638
])->min(1));
3739
}
3840

0 commit comments

Comments
 (0)