Skip to content

Commit 7a91f56

Browse files
author
Balazs Csaba
committed
Added deprication note on Valid constraint validator for deep option.
1 parent 5a58305 commit 7a91f56

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Constraints/Valid.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public function __construct($options = null)
4040
));
4141
}
4242

43+
if (is_array($options) && array_key_exists('deep', $options)) {
44+
trigger_error('The "deep" option for the Valid constraint is deprecated since 2.5 and will be removed in 3.0. When traversing arrays, nested arrays are always traversed. When traversing nested objects, their traversal strategy is used.', E_USER_DEPRECATED);
45+
}
46+
4347
parent::__construct($options);
4448
}
4549
}

0 commit comments

Comments
 (0)