Merge branch '3.4' into 4.4

* 3.4:
  mark the AssertingContextualValidator class as internal
  make return type correct
This commit is contained in:
Fabien Potencier 2020-08-18 13:39:55 +02:00
commit 88bf7211a9
2 changed files with 4 additions and 1 deletions

View File

@ -148,7 +148,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
/** /**
* Returns an iterator to iterate over children (implements \IteratorAggregate). * Returns an iterator to iterate over children (implements \IteratorAggregate).
* *
* @return \ArrayIterator|FormView[] The iterator * @return \ArrayIterator<string, FormView> The iterator
*/ */
public function getIterator() public function getIterator()
{ {

View File

@ -343,6 +343,9 @@ class ConstraintViolationAssertion
} }
} }
/**
* @internal
*/
class AssertingContextualValidator implements ContextualValidatorInterface class AssertingContextualValidator implements ContextualValidatorInterface
{ {
private $expectNoValidate = false; private $expectNoValidate = false;