src/Compiler.php
public function assertMap($value)
    {
        $value = $this->coerceMap($value);

        if ($value[0] !== Type::T_MAP) {
            $this->throwError('expecting map, %s received', $value[0]);
        }

        return $value;
    }
public function assertMap($value)
    {
        $value = $this->coerceMap($value);

        if ($value[0] !== Type::T_MAP) {
            $this->throwError('expecting map, %s received', $value[0]);
        }

        return $value;
    }
public function assertMap ( $ value ) { $ value = $ this -> coerceMap ( $ value ) ; if ( $ value [ 0 ] !== Type :: T_MAP ) { $ this -> throwError ( 'expecting map, %s received' , $ value [ 0 ] ) ; } return $ value ; }
Assert value is a map

@api

@param array $value

@return array

@throws \Exception
Assert value is a map