diff options
Diffstat (limited to 'vendor/beberlei/assert/lib/Assert/LazyAssertionException.php')
-rw-r--r-- | vendor/beberlei/assert/lib/Assert/LazyAssertionException.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php b/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php index 0a834c1cb..2ba59dd7c 100644 --- a/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php +++ b/vendor/beberlei/assert/lib/Assert/LazyAssertionException.php @@ -23,10 +23,8 @@ class LazyAssertionException extends InvalidArgumentException /** * @param InvalidArgumentException[] $errors - * - * @return self */ - public static function fromErrors(array $errors) + public static function fromErrors(array $errors): self { $message = \sprintf('The following %d assertions failed:', \count($errors))."\n"; @@ -45,7 +43,10 @@ class LazyAssertionException extends InvalidArgumentException $this->errors = $errors; } - public function getErrorExceptions() + /** + * @return InvalidArgumentException[] + */ + public function getErrorExceptions(): array { return $this->errors; } |