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) ?: [];
    }
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) ?: [];
    }
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 ) ? : [ ] ; }
Given an array of named parameters, constructs a proper mapping of
named parameters to types.

@param array $namedParameters The named parameters to filter.

@return array
Given an array of named parameters constructs a proper mapping of named parameters to types .