From bd4475fc34cc885c7f2509c49a52e9aefe0c4273 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:21:07 +0100 Subject: [PATCH] Revert src/lib/Limitation/ Revert 1799d56726f42e82f65a1054a2a823746dd2a4de changes on src/lib/Limitation/ as this is out of contracts scope. --- src/lib/Limitation/LocationLimitationType.php | 5 +++-- src/lib/Limitation/SubtreeLimitationType.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/Limitation/LocationLimitationType.php b/src/lib/Limitation/LocationLimitationType.php index e0ce4ec2b6..3c7cd6571f 100644 --- a/src/lib/Limitation/LocationLimitationType.php +++ b/src/lib/Limitation/LocationLimitationType.php @@ -224,9 +224,10 @@ public function getCriterion(APILimitationValue $value, APIUserReference $curren } /** - * Returns an integer code meaning that the value must be an array listing location IDs. + * Returns info on valid $limitationValues. * - * @return int {@see LocationLimitationType::VALUE_SCHEMA_LOCATION_ID} + * @return mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name + * of that option, in case of int on of VALUE_SCHEMA_ constants. */ public function valueSchema() { diff --git a/src/lib/Limitation/SubtreeLimitationType.php b/src/lib/Limitation/SubtreeLimitationType.php index 3ceb4cee0d..c642ec64e8 100644 --- a/src/lib/Limitation/SubtreeLimitationType.php +++ b/src/lib/Limitation/SubtreeLimitationType.php @@ -258,9 +258,10 @@ public function getCriterion(APILimitationValue $value, APIUserReference $curren } /** - * Returns an integer code meaning that the value must be an array listing location paths. + * Returns info on valid $limitationValues. * - * @return int {@see SubtreeLimitationType::VALUE_SCHEMA_LOCATION_PATH} + * @return mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name + * of that option, in case of int on of VALUE_SCHEMA_ constants. */ public function valueSchema() {