We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932f2e1 commit 7d2226bCopy full SHA for 7d2226b
src/Forms/Rules.php
@@ -293,7 +293,7 @@ private static function getCallback(Rule $rule)
293
{
294
$op = $rule->validator;
295
if (is_string($op) && strncmp($op, ':', 1) === 0) {
296
- return 'Nette\Forms\Validator::validate' . ltrim($op, ':');
+ return [Validator::class, 'validate' . ltrim($op, ':')];
297
} else {
298
return $op;
299
}
0 commit comments