/** * @inheritdoc */ public function onFinish(ErrorAggregatorInterface $aggregator) { parent::onFinish($aggregator); if ($this->hasBeenInvoked === false) { $aggregator->add($this->createError($this->getParameterName(), null, MessageCodes::REQUIRED)); } }
/** * @inheritdoc */ public function onFinish(ErrorAggregatorInterface $aggregator) { parent::onFinish($aggregator); if ($this->errorAdded === false) { $aggregator->add($this->createError($this->getParameterName(), null, $this->messageCode)); } }