@@ -236,7 +236,7 @@ protected function getContainerBuilder(): ContainerBuilder
236236 return $ this ->containerBuilder = $ container ;
237237 }
238238
239- private function findProperServiceName (InputInterface $ input , SymfonyStyle $ io , ContainerBuilder $ builder , string $ name , bool $ showHidden )
239+ private function findProperServiceName (InputInterface $ input , SymfonyStyle $ io , ContainerBuilder $ builder , string $ name , bool $ showHidden ): string
240240 {
241241 $ name = ltrim ($ name , '\\' );
242242
@@ -256,7 +256,7 @@ private function findProperServiceName(InputInterface $input, SymfonyStyle $io,
256256 return $ io ->choice ('Select one of the following services to display its information ' , $ matchingServices );
257257 }
258258
259- private function findServiceIdsContaining (ContainerBuilder $ builder , string $ name , bool $ showHidden )
259+ private function findServiceIdsContaining (ContainerBuilder $ builder , string $ name , bool $ showHidden ): array
260260 {
261261 $ serviceIds = $ builder ->getServiceIds ();
262262 $ foundServiceIds = $ foundServiceIdsIgnoringBackslashes = [];
@@ -278,7 +278,7 @@ private function findServiceIdsContaining(ContainerBuilder $builder, string $nam
278278 /**
279279 * @internal
280280 */
281- public function filterToServiceTypes ($ serviceId )
281+ public function filterToServiceTypes (string $ serviceId ): bool
282282 {
283283 // filter out things that could not be valid class names
284284 if (!preg_match ('/(?(DEFINE)(?<V>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*+))^(?&V)(?: \\\\(?&V))*+(?: \$(?&V))?$/ ' , $ serviceId )) {
0 commit comments