private static function collectArguments(
        \SplObjectStorage $arguments,
        array $resolvers,
        object $message,
        KernelContext $context
    ): array {
        $preparedArguments = [];

        /** @var \ServiceBus\Common\MessageHandler\MessageHandlerArgument $argument */
        foreach ($arguments as $argument)
        {
            foreach ($resolvers as $argumentResolver)
            {
                if (true === $argumentResolver->supports($argument))
                {
                    /** @psalm-suppress MixedAssignment Unknown data type */
                    $preparedArguments[] = $argumentResolver->resolve($message, $context, $argument);
                }
            }
        }

        /** @var array<int, mixed> $preparedArguments */

        return $preparedArguments;
    }
private static function collectArguments(
        \SplObjectStorage $arguments,
        array $resolvers,
        object $message,
        KernelContext $context
    ): array {
        $preparedArguments = [];

        /** @var \ServiceBus\Common\MessageHandler\MessageHandlerArgument $argument */
        foreach ($arguments as $argument)
        {
            foreach ($resolvers as $argumentResolver)
            {
                if (true === $argumentResolver->supports($argument))
                {
                    /** @psalm-suppress MixedAssignment Unknown data type */
                    $preparedArguments[] = $argumentResolver->resolve($message, $context, $argument);
                }
            }
        }

        /** @var array<int, mixed> $preparedArguments */

        return $preparedArguments;
    }
private static function collectArguments ( \ SplObjectStorage $ arguments , array $ resolvers , object $ message , KernelContext $ context ) : array { $ preparedArguments = [ ] ; /** @var \ServiceBus\Common\MessageHandler\MessageHandlerArgument $argument */ foreach ( $ arguments as $ argument ) { foreach ( $ resolvers as $ argumentResolver ) { if ( true === $ argumentResolver -> supports ( $ argument ) ) { /** @psalm-suppress MixedAssignment Unknown data type */ $ preparedArguments [ ] = $ argumentResolver -> resolve ( $ message , $ context , $ argument ) ; } } } /** @var array<int, mixed> $preparedArguments */ return $ preparedArguments ; }
Collect arguments list.

@psalm-param \SplObjectStorage<\ServiceBus\Common\MessageHandler\MessageHandlerArgument, string> $arguments
@psalm-param  array<string, \ServiceBus\ArgumentResolvers\ArgumentResolver> $resolvers
@psalm-return array<int, mixed>

@param \SplObjectStorage                                $arguments
@param \ServiceBus\ArgumentResolvers\ArgumentResolver[] $resolvers
@param object                                           $message
@param KernelContext                                    $context

@return array
Collect arguments list .