Skip to content

Commit

Permalink
Fix conditionalTags for ParameterOutExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Jun 20, 2024
1 parent 00ef9df commit a8ededf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DependencyInjection/ConditionalTagsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use PHPStan\Broker\BrokerFactory;
use PHPStan\Collectors\RegistryFactory as CollectorRegistryFactory;
use PHPStan\DependencyInjection\Type\LazyDynamicThrowTypeExtensionProvider;
use PHPStan\DependencyInjection\Type\LazyParameterClosureTypeExtensionProvider;
use PHPStan\DependencyInjection\Type\LazyParameterOutTypeExtensionProvider;
use PHPStan\Parser\RichParser;
use PHPStan\PhpDoc\StubFilesExtension;
use PHPStan\PhpDoc\TypeNodeResolverExtension;
Expand Down Expand Up @@ -49,6 +51,12 @@ public function getConfigSchema(): Nette\Schema\Schema
LazyDynamicThrowTypeExtensionProvider::FUNCTION_TAG => $bool,
LazyDynamicThrowTypeExtensionProvider::METHOD_TAG => $bool,
LazyDynamicThrowTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
LazyParameterClosureTypeExtensionProvider::FUNCTION_TAG => $bool,
LazyParameterClosureTypeExtensionProvider::METHOD_TAG => $bool,
LazyParameterClosureTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
LazyParameterOutTypeExtensionProvider::FUNCTION_TAG => $bool,
LazyParameterOutTypeExtensionProvider::METHOD_TAG => $bool,
LazyParameterOutTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
])->min(1));
}

Expand Down

0 comments on commit a8ededf

Please sign in to comment.