File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Validator ;
13
13
14
+ use Symfony \Component \Validator \Exception \OutOfBoundsException ;
15
+
14
16
/**
15
17
* Default implementation of {@ConstraintViolationListInterface}.
16
18
*
@@ -77,7 +79,7 @@ public function addAll(ConstraintViolationListInterface $otherList)
77
79
public function get (int $ offset ): ConstraintViolationInterface
78
80
{
79
81
if (!isset ($ this ->violations [$ offset ])) {
80
- throw new \ OutOfBoundsException (sprintf ('The offset "%s" does not exist. ' , $ offset ));
82
+ throw new OutOfBoundsException (sprintf ('The offset "%s" does not exist. ' , $ offset ));
81
83
}
82
84
83
85
return $ this ->violations [$ offset ];
Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Validator ;
13
13
14
+ use Symfony \Component \Validator \Exception \OutOfBoundsException ;
15
+
14
16
/**
15
17
* A list of constraint violations.
16
18
*
@@ -42,7 +44,7 @@ public function addAll(self $otherList);
42
44
*
43
45
* @param int $offset The offset of the violation
44
46
*
45
- * @throws \ OutOfBoundsException if the offset does not exist
47
+ * @throws OutOfBoundsException if the offset does not exist
46
48
*/
47
49
public function get (int $ offset ): ConstraintViolationInterface ;
48
50
You can’t perform that action at this time.
0 commit comments