From fbbe7e5d79f618997bc3332a6f49246036c45793 Mon Sep 17 00:00:00 2001 From: Takayasu Oyama Date: Tue, 26 Sep 2023 11:20:38 +0900 Subject: [PATCH] Add attribute `#[\AllowDynamicProperties]` to allow applying defaults without deprecation warning (#695) (#701) Co-authored-by: Ilya Urvachev --- src/JsonSchema/Constraints/UndefinedConstraint.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/JsonSchema/Constraints/UndefinedConstraint.php b/src/JsonSchema/Constraints/UndefinedConstraint.php index 8effd4ba..1e984a3d 100644 --- a/src/JsonSchema/Constraints/UndefinedConstraint.php +++ b/src/JsonSchema/Constraints/UndefinedConstraint.php @@ -20,6 +20,7 @@ * @author Robert Schönthal * @author Bruno Prieto Reis */ +#[\AllowDynamicProperties] class UndefinedConstraint extends Constraint { /**