Skip to content

Commit 4893de0

Browse files
committed
Bugfix undefined variable attributes
1 parent 33b94e1 commit 4893de0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Validation.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ protected function parseArrayAttribute(Attribute $attribute)
105105
$data, $attributeKey
106106
));
107107

108+
$attributes = [];
109+
108110
foreach ($data as $key => $value) {
109111
if ((bool) preg_match('/^'.$pattern.'\z/', $key)) {
110112
$attr = new Attribute($this, $key, null, $attribute->getRules());
@@ -411,4 +413,4 @@ protected function resolveInputAttributes(array $inputs)
411413
return $resolvedInputs;
412414
}
413415

414-
}
416+
}

0 commit comments

Comments
 (0)