From 407f2e276dc2bb1e127141cf75f82e7d75b7babe Mon Sep 17 00:00:00 2001 From: Lucas Lemaire Date: Fri, 1 Feb 2019 15:19:02 +0100 Subject: [PATCH] fix getPropertyPath wrong return type The property path can be null --- lib/Assert/InvalidArgumentException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Assert/InvalidArgumentException.php b/lib/Assert/InvalidArgumentException.php index 20c89099..c76951e0 100644 --- a/lib/Assert/InvalidArgumentException.php +++ b/lib/Assert/InvalidArgumentException.php @@ -36,7 +36,7 @@ public function __construct($message, $code, $propertyPath, $value, array $const * Useful to transport information about the nature of the error * back to higher layers. * - * @return string + * @return string|null */ public function getPropertyPath() {