From 405a5247e132191696b834bd7aabde969de65b40 Mon Sep 17 00:00:00 2001 From: Thomas Picquet Date: Wed, 2 Feb 2022 08:47:26 -0800 Subject: [PATCH] check `$properties['value']` is not empty --- Annotation/Areas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Areas.php b/Annotation/Areas.php index 8e8d588..4d8c805 100644 --- a/Annotation/Areas.php +++ b/Annotation/Areas.php @@ -26,7 +26,7 @@ final class Areas $properties['value'] = array_values($properties); } - if ([] === $properties) { + if ([] === $properties['value']) { throw new \InvalidArgumentException('An array of areas was expected'); }