/** * @param string $message * @param int $code * @param null $propertyPath * @param $value * @param array $constraints */ public function __construct($message, $code, $propertyPath = null, $value, array $constraints = array()) { if (null !== $propertyPath) { $message = $propertyPath . ' :: ' . $message; } parent::__construct($message, $code, $propertyPath, $value, $constraints); }
public function __construct($message, $code, $propertyPath = null, $value, array $constraints = array()) { // @codingStandardsIgnoreEnd if ($propertyPath !== null && strpos($message, $propertyPath) === false) { $message = sprintf('Invalid argument given for "%s": %s', $propertyPath, $message); } parent::__construct($message, $code, $propertyPath, $value, $constraints); }
public function __construct($message, $code, $propertyPath = null, $value = null, array $constraints = array()) { parent::__construct($message, $code, $propertyPath, $value, $constraints); }