-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Closed
Description
In our project there is possibility write own custom rules. And currently no way check if this rules written correctly. Currently we are using workaround for it, but I think that should be linter.
$error = '';
set_error_handler(function($errno, $errstr) use (&$error) {
$error = $errstr;
});
$expressionLanguage->compile($extendedPattern, array('title'));
restore_error_handler();
if ($error) {
$errorElement
->with('categoryExtended.extendedPattern')
->addViolation($error)
->end();
}
sstok