Mapping of validation rules don't work if I use $request->validate in try/catch block.
The problem in RequestValidate.php this line:
if (!($node instanceof Node\Stmt\Expression)) return;
Node return => RulesPhpParser\Node\Stmt\TryCatch instead RulesPhpParser\Node\Stmt\Expression and exit from mapping
Scribe version
4.22
PHP version
8.1
Framework
Laravel
Framework version
10.10
Scribe config
What happened?
Mapping of validation rules don't work if I use $request->validate in try/catch block. The problem in RequestValidate.php this line: if (!($node instanceof Node\Stmt\Expression)) return;
Node return => RulesPhpParser\Node\Stmt\TryCatch instead RulesPhpParser\Node\Stmt\Expression and exit from mapping
Docs