Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 protected function validateType($value)
 {
     parent::validateType($value);
     if (!is_bool($value)) {
         throw new InvalidTypeException(sprintf('Invalid type for path "%s". Expected boolean, but got %s.', $this->getPath(), json_encode($value)));
     }
 }