diff options
author | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-18 07:32:28 +0300 |
commit | 63ec5a89657bb7f9650582b96e0bb255a0889b48 (patch) | |
tree | 074b61eedd7304ba1d8d7deec01d26973ef8e6b8 /vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php | |
parent | 3a3fde1a2e0beac6d179c6449eaad726100710d7 (diff) | |
parent | 2d830c6281c19a7ee29cd379f5aedc82deef3775 (diff) |
Merge branch 'wip-phpstan-level6'
Diffstat (limited to 'vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php')
-rw-r--r-- | vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php b/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php index acd966544..20c890992 100644 --- a/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php +++ b/vendor/beberlei/assert/lib/Assert/InvalidArgumentException.php @@ -16,22 +16,11 @@ namespace Assert; class InvalidArgumentException extends \InvalidArgumentException implements AssertionFailedException { - /** - * @var string|null - */ private $propertyPath; - - /** - * @var mixed - */ private $value; - - /** - * @var array - */ private $constraints; - public function __construct($message, $code, string $propertyPath = null, $value = null, array $constraints = []) + public function __construct($message, $code, $propertyPath, $value, array $constraints = []) { parent::__construct($message, $code); @@ -47,7 +36,7 @@ class InvalidArgumentException extends \InvalidArgumentException implements Asse * Useful to transport information about the nature of the error * back to higher layers. * - * @return string|null + * @return string */ public function getPropertyPath() { @@ -69,7 +58,7 @@ class InvalidArgumentException extends \InvalidArgumentException implements Asse * * @return array */ - public function getConstraints(): array + public function getConstraints() { return $this->constraints; } |