From 35af9a53176a329baa24b02670cb6789323e32ed Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Sat, 3 Jun 2023 22:55:04 +0200 Subject: [PATCH] Add limit for unbounded items --- composer.json | 2 +- src/XML/cas/Proxies.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4592375..e613271 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "php": "^8.0", "ext-dom": "*", - "simplesamlphp/xml-common": "^1.11.0", + "simplesamlphp/xml-common": "^1.11.5", "simplesamlphp/assert": "^1.0.4" }, "require-dev": { diff --git a/src/XML/cas/Proxies.php b/src/XML/cas/Proxies.php index 7795123..8b0ec67 100644 --- a/src/XML/cas/Proxies.php +++ b/src/XML/cas/Proxies.php @@ -28,6 +28,7 @@ final class Proxies extends AbstractCasElement final public function __construct( protected array $proxy = [], ) { + Assert::maxCount($proxy, C::UNBOUNDED_LIMIT); Assert::allIsInstanceOf($proxy, Proxy::class); Assert::minCount($proxy, 1, 'Missing at least one Proxy in Proxies.', MissingElementException::class); }