Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 3 additions & 0 deletions
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‎

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /