Skip to content

Commit

Permalink
ConditionalTagsExtension - allow phpstan.collector tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 27, 2022
1 parent 8676d4c commit 199dee4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/DependencyInjection/ConditionalTagsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
use Nette\Schema\Expect;
use PHPStan\Analyser\TypeSpecifierFactory;
use PHPStan\Broker\BrokerFactory;
use PHPStan\Collectors\RegistryFactory as CollectorRegistryFactory;
use PHPStan\Parser\RichParser;
use PHPStan\PhpDoc\TypeNodeResolverExtension;
use PHPStan\Rules\RegistryFactory;
use PHPStan\Rules\RegistryFactory as RuleRegistryFactory;
use PHPStan\ShouldNotHappenException;
use function count;
use function sprintf;
Expand All @@ -27,12 +28,13 @@ public function getConfigSchema(): Nette\Schema\Schema
BrokerFactory::DYNAMIC_STATIC_METHOD_RETURN_TYPE_EXTENSION_TAG => $bool,
BrokerFactory::DYNAMIC_FUNCTION_RETURN_TYPE_EXTENSION_TAG => $bool,
BrokerFactory::OPERATOR_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
RegistryFactory::RULE_TAG => $bool,
RuleRegistryFactory::RULE_TAG => $bool,
TypeNodeResolverExtension::EXTENSION_TAG => $bool,
TypeSpecifierFactory::FUNCTION_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
TypeSpecifierFactory::METHOD_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
TypeSpecifierFactory::STATIC_METHOD_TYPE_SPECIFYING_EXTENSION_TAG => $bool,
RichParser::VISITOR_SERVICE_TAG => $bool,
CollectorRegistryFactory::COLLECTOR_TAG => $bool,
])->min(1));
}

Expand Down

0 comments on commit 199dee4

Please sign in to comment.