@@ -163,7 +163,7 @@ public function registerTagHandler(string $tagName, string $handler): void
163163 *
164164 * @return string[]
165165 */
166- private function extractTagParts (string $ tagLine )
166+ private function extractTagParts (string $ tagLine ): array
167167 {
168168 $ matches = [];
169169 if (! preg_match ('/^@( ' . self ::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)/us ' , $ tagLine , $ matches )) {
@@ -222,7 +222,7 @@ private function findHandlerClassName(string $tagName, TypeContext $context): st
222222 * @return mixed[] A series of values that can be passed to the Factory Method of the tag whose parameters
223223 * is provided with this method.
224224 */
225- private function getArgumentsForParametersFromWiring ($ parameters , $ locator )
225+ private function getArgumentsForParametersFromWiring ($ parameters , $ locator ): array
226226 {
227227 $ arguments = [];
228228 foreach ($ parameters as $ index => $ parameter ) {
@@ -251,7 +251,7 @@ private function getArgumentsForParametersFromWiring($parameters, $locator)
251251 *
252252 * @return \ReflectionParameter[]
253253 */
254- private function fetchParametersForHandlerFactoryMethod (string $ handlerClassName )
254+ private function fetchParametersForHandlerFactoryMethod (string $ handlerClassName ): array
255255 {
256256 if (! isset ($ this ->tagHandlerParameterCache [$ handlerClassName ])) {
257257 $ methodReflection = new \ReflectionMethod ($ handlerClassName , 'create ' );
@@ -271,7 +271,7 @@ private function fetchParametersForHandlerFactoryMethod(string $handlerClassName
271271 *
272272 * @return mixed[]
273273 */
274- private function getServiceLocatorWithDynamicParameters (TypeContext $ context , string $ tagName , string $ tagBody )
274+ private function getServiceLocatorWithDynamicParameters (TypeContext $ context , string $ tagName , string $ tagBody ): array
275275 {
276276 $ locator = array_merge (
277277 $ this ->serviceLocator ,
0 commit comments