Skip to content

Commit 2e6435a

Browse files
committed
SCA: get rid of repetitive calls
1 parent 1722865 commit 2e6435a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ExecutionContext.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,9 @@ public function validate($value, $subPath = '', $groups = null, $traverse = fals
197197
{
198198
$propertyPath = $this->getPropertyPath($subPath);
199199

200+
$visitor = $this->globalContext->getVisitor();
200201
foreach ($this->resolveGroups($groups) as $group) {
201-
$this->globalContext->getVisitor()->validate($value, $group, $propertyPath, $traverse, $deep);
202+
$visitor->validate($value, $group, $propertyPath, $traverse, $deep);
202203
}
203204
}
204205

0 commit comments

Comments
 (0)