protected function filterNamedParameters(array $namedParameters): array
    {
        $names = [];
        $types = [];

        foreach ($namedParameters as $key => $value) {
            if (\is_int($key)) {
                $names[] = (string) $value;
                $types[] = 'mixed';
            } else {
                $names[] = $key;
                $types[] = (string) $value;
            }
        }

        return \array_combine($names, $types) ?: [];
    }