From d0e7b95c273ffc51962612fef7e90277e0121e44 Mon Sep 17 00:00:00 2001 From: Ilya Urvachev Date: Tue, 13 Dec 2022 20:19:25 +0200 Subject: [PATCH] fix(UndefinedConstraint): add attribute `#[AllowDynamicProperties]` to allow applying defaults without deprecation warning --- 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 cc41058a..d0482007 100644 --- a/src/JsonSchema/Constraints/UndefinedConstraint.php +++ b/src/JsonSchema/Constraints/UndefinedConstraint.php @@ -21,6 +21,7 @@ * @author Robert Schönthal * @author Bruno Prieto Reis */ +#[\AllowDynamicProperties] class UndefinedConstraint extends Constraint { /**