Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConditionalTagsExtension: add missing tags #2574

Merged
merged 2 commits into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/DependencyInjection/ConditionalTagsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
use PHPStan\Analyser\TypeSpecifierFactory;
use PHPStan\Broker\BrokerFactory;
use PHPStan\Collectors\RegistryFactory as CollectorRegistryFactory;
use PHPStan\DependencyInjection\Type\LazyDynamicThrowTypeExtensionProvider;
use PHPStan\Parser\RichParser;
use PHPStan\PhpDoc\StubFilesExtension;
use PHPStan\PhpDoc\TypeNodeResolverExtension;
use PHPStan\Rules\Constants\AlwaysUsedClassConstantsExtensionProvider;
use PHPStan\Rules\LazyRegistry;
use PHPStan\Rules\Properties\ReadWritePropertiesExtensionProvider;
use PHPStan\ShouldNotHappenException;
use function array_reduce;
use function count;
Expand All @@ -30,13 +34,20 @@ 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,
BrokerFactory::ALLOWED_SUB_TYPES_CLASS_REFLECTION_EXTENSION_TAG => $bool,
LazyRegistry::RULE_TAG => $bool,
TypeNodeResolverExtension::EXTENSION_TAG => $bool,
StubFilesExtension::EXTENSION_TAG => $bool,
AlwaysUsedClassConstantsExtensionProvider::EXTENSION_TAG => $bool,
ReadWritePropertiesExtensionProvider::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,
LazyDynamicThrowTypeExtensionProvider::FUNCTION_TAG => $bool,
LazyDynamicThrowTypeExtensionProvider::METHOD_TAG => $bool,
LazyDynamicThrowTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
])->min(1));
}

Expand Down
Loading