@@ -163,7 +163,7 @@ public function registerTagHandler(string $tagName, string $handler): void
163
163
*
164
164
* @return string[]
165
165
*/
166
- private function extractTagParts (string $ tagLine )
166
+ private function extractTagParts (string $ tagLine ): array
167
167
{
168
168
$ matches = [];
169
169
if (! preg_match ('/^@( ' . self ::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)/us ' , $ tagLine , $ matches )) {
@@ -222,7 +222,7 @@ private function findHandlerClassName(string $tagName, TypeContext $context): st
222
222
* @return mixed[] A series of values that can be passed to the Factory Method of the tag whose parameters
223
223
* is provided with this method.
224
224
*/
225
- private function getArgumentsForParametersFromWiring ($ parameters , $ locator )
225
+ private function getArgumentsForParametersFromWiring ($ parameters , $ locator ): array
226
226
{
227
227
$ arguments = [];
228
228
foreach ($ parameters as $ index => $ parameter ) {
@@ -251,7 +251,7 @@ private function getArgumentsForParametersFromWiring($parameters, $locator)
251
251
*
252
252
* @return \ReflectionParameter[]
253
253
*/
254
- private function fetchParametersForHandlerFactoryMethod (string $ handlerClassName )
254
+ private function fetchParametersForHandlerFactoryMethod (string $ handlerClassName ): array
255
255
{
256
256
if (! isset ($ this ->tagHandlerParameterCache [$ handlerClassName ])) {
257
257
$ methodReflection = new \ReflectionMethod ($ handlerClassName , 'create ' );
@@ -271,7 +271,7 @@ private function fetchParametersForHandlerFactoryMethod(string $handlerClassName
271
271
*
272
272
* @return mixed[]
273
273
*/
274
- private function getServiceLocatorWithDynamicParameters (TypeContext $ context , string $ tagName , string $ tagBody )
274
+ private function getServiceLocatorWithDynamicParameters (TypeContext $ context , string $ tagName , string $ tagBody ): array
275
275
{
276
276
$ locator = array_merge (
277
277
$ this ->serviceLocator ,
0 commit comments