Skip to content

Commit

Permalink
feat: Sync Validor stubs with SF6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
viviengaetan authored and ondrejmirtes committed Sep 28, 2023
1 parent 14e46f2 commit 3bc0b95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Symfony\Component\Validator;

/**
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
*/
interface ConstraintViolationInterface
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
namespace Symfony\Component\Validator;

/**
* @extends \ArrayAccess<int, ConstraintViolationInterface>
* @extends \Traversable<int, ConstraintViolationInterface>
*
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
*/
interface ConstraintViolationListInterface extends \Traversable
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess
{
}

0 comments on commit 3bc0b95

Please sign in to comment.