@@ -24,13 +24,16 @@ public function __construct(private Container $container)
2424
2525 public function create (): TypeSpecifier
2626 {
27+ $ functionTypeSpecifying = $ this ->container ->getServicesByTag (self ::FUNCTION_TYPE_SPECIFYING_EXTENSION_TAG );
28+ $ methodTypeSpecifying = $ this ->container ->getServicesByTag (self ::METHOD_TYPE_SPECIFYING_EXTENSION_TAG );
29+ $ staticMethodTypeSpecifying = $ this ->container ->getServicesByTag (self ::STATIC_METHOD_TYPE_SPECIFYING_EXTENSION_TAG );
2730 $ typeSpecifier = new LegacyTypeSpecifier (
2831 $ this ->container ->getByType (ExprPrinter::class),
2932 $ this ->container ->getByType (ReflectionProvider::class),
3033 $ this ->container ->getByType (PhpVersion::class),
31- $ this -> container -> getServicesByTag ( self :: FUNCTION_TYPE_SPECIFYING_EXTENSION_TAG ) ,
32- $ this -> container -> getServicesByTag ( self :: METHOD_TYPE_SPECIFYING_EXTENSION_TAG ) ,
33- $ this -> container -> getServicesByTag ( self :: STATIC_METHOD_TYPE_SPECIFYING_EXTENSION_TAG ) ,
34+ $ functionTypeSpecifying ,
35+ $ methodTypeSpecifying ,
36+ $ staticMethodTypeSpecifying ,
3437 $ this ->container ->getParameter ('rememberPossiblyImpureFunctionValues ' ),
3538 );
3639
@@ -40,6 +43,9 @@ public function create(): TypeSpecifier
4043 $ this ->container ->getServicesByTag (BrokerFactory::DYNAMIC_METHOD_RETURN_TYPE_EXTENSION_TAG ),
4144 $ this ->container ->getServicesByTag (BrokerFactory::DYNAMIC_STATIC_METHOD_RETURN_TYPE_EXTENSION_TAG ),
4245 $ this ->container ->getServicesByTag (BrokerFactory::DYNAMIC_FUNCTION_RETURN_TYPE_EXTENSION_TAG ),
46+ $ functionTypeSpecifying ,
47+ $ methodTypeSpecifying ,
48+ $ staticMethodTypeSpecifying ,
4349 ) as $ extension ) {
4450 if (!($ extension instanceof TypeSpecifierAwareExtension)) {
4551 continue ;
0 commit comments