Skip to content

Commit 3bc0b95

Browse files
viviengaetanondrejmirtes
authored andcommitted
feat: Sync Validor stubs with SF6.1
1 parent 14e46f2 commit 3bc0b95

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

stubs/Symfony/Component/Validator/ConstraintViolationInterface.stub

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Symfony\Component\Validator;
44

5+
/**
6+
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
7+
*/
58
interface ConstraintViolationInterface
69
{
710
}

stubs/Symfony/Component/Validator/ConstraintViolationListInterface.stub

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
namespace Symfony\Component\Validator;
44

55
/**
6+
* @extends \ArrayAccess<int, ConstraintViolationInterface>
67
* @extends \Traversable<int, ConstraintViolationInterface>
8+
*
9+
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
710
*/
8-
interface ConstraintViolationListInterface extends \Traversable
11+
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess
912
{
1013
}

0 commit comments

Comments
 (0)