Skip to content

Commit

Permalink
ConditionalTagsExtension: add throw type extension tags
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Aug 17, 2023
1 parent cd55cb2 commit 9a07840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DependencyInjection/ConditionalTagsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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\TypeNodeResolverExtension;
use PHPStan\Rules\LazyRegistry;
Expand Down Expand Up @@ -37,6 +38,9 @@ public function getConfigSchema(): Nette\Schema\Schema
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

0 comments on commit 9a07840

Please sign in to comment.