Skip to content

Commit 7d2226b

Browse files
committed
used ::class
1 parent 932f2e1 commit 7d2226b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Forms/Rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private static function getCallback(Rule $rule)
293293
{
294294
$op = $rule->validator;
295295
if (is_string($op) && strncmp($op, ':', 1) === 0) {
296-
return 'Nette\Forms\Validator::validate' . ltrim($op, ':');
296+
return [Validator::class, 'validate' . ltrim($op, ':')];
297297
} else {
298298
return $op;
299299
}

0 commit comments

Comments
 (0)