Skip to content

Commit a8ededf

Browse files
authored
Fix conditionalTags for ParameterOutExtensions
1 parent 00ef9df commit a8ededf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/DependencyInjection/ConditionalTagsExtension.php

+8
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use PHPStan\Broker\BrokerFactory;
1010
use PHPStan\Collectors\RegistryFactory as CollectorRegistryFactory;
1111
use PHPStan\DependencyInjection\Type\LazyDynamicThrowTypeExtensionProvider;
12+
use PHPStan\DependencyInjection\Type\LazyParameterClosureTypeExtensionProvider;
13+
use PHPStan\DependencyInjection\Type\LazyParameterOutTypeExtensionProvider;
1214
use PHPStan\Parser\RichParser;
1315
use PHPStan\PhpDoc\StubFilesExtension;
1416
use PHPStan\PhpDoc\TypeNodeResolverExtension;
@@ -49,6 +51,12 @@ public function getConfigSchema(): Nette\Schema\Schema
4951
LazyDynamicThrowTypeExtensionProvider::FUNCTION_TAG => $bool,
5052
LazyDynamicThrowTypeExtensionProvider::METHOD_TAG => $bool,
5153
LazyDynamicThrowTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
54+
LazyParameterClosureTypeExtensionProvider::FUNCTION_TAG => $bool,
55+
LazyParameterClosureTypeExtensionProvider::METHOD_TAG => $bool,
56+
LazyParameterClosureTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
57+
LazyParameterOutTypeExtensionProvider::FUNCTION_TAG => $bool,
58+
LazyParameterOutTypeExtensionProvider::METHOD_TAG => $bool,
59+
LazyParameterOutTypeExtensionProvider::STATIC_METHOD_TAG => $bool,
5260
])->min(1));
5361
}
5462

0 commit comments

Comments
 (0)