protected function validateType($value)
    {
        if (!is_array($value) && (!$this->allowFalse || false !== $value)) {
            $ex = new InvalidTypeException(sprintf(
                'Invalid type for path "%s". Expected array, but got %s',
                $this->getPath(),
                gettype($value)
            ));
            if ($hint = $this->getInfo()) {
                $ex->addHint($hint);
            }
            $ex->setPath($this->getPath());

            throw $ex;
        }
    }
protected function validateType($value)
    {
        if (!is_array($value) && (!$this->allowFalse || false !== $value)) {
            $ex = new InvalidTypeException(sprintf(
                'Invalid type for path "%s". Expected array, but got %s',
                $this->getPath(),
                gettype($value)
            ));
            if ($hint = $this->getInfo()) {
                $ex->addHint($hint);
            }
            $ex->setPath($this->getPath());

            throw $ex;
        }
    }
protected function validateType ( $ value ) { if ( ! is_array ( $ value ) && ( ! $ this -> allowFalse || false !== $ value ) ) { $ ex = new InvalidTypeException ( sprintf ( 'Invalid type for path "%s". Expected array, but got %s' , $ this -> getPath ( ) , gettype ( $ value ) ) ) ; if ( $ hint = $ this -> getInfo ( ) ) { $ ex -> addHint ( $ hint ) ; } $ ex -> setPath ( $ this -> getPath ( ) ) ; throw $ ex ; } }
Validates the type of the value.

@param mixed $value

@throws InvalidTypeException
Validates the type of the value .