if ($attr->has_type_constraint) {
$code .= "{
- local \$_ = \$value;
- unless (\$attrs[$index]->{find_type_constraint}->(\$_)) {
+ unless (\$attrs[$index]->{find_type_constraint}->(\$value)) {
\$attrs[$index]->verify_type_constraint_error('$key', \$_, \$attrs[$index]->type_constraint)
}
}";
if ($attr->has_type_constraint) {
$code .= "{
- local \$_ = \$value;
- unless (\$attrs[$index]->{find_type_constraint}->(\$_)) {
+ unless (\$attrs[$index]->{find_type_constraint}->(\$value)) {
\$attrs[$index]->verify_type_constraint_error('$key', \$_, \$attrs[$index]->type_constraint)
}
}";