79692990

Date: 2025-07-07 14:23:30
Score: 1.5
Natty:
Report link

.withMessage() must immediately follow a validation or sanitizer method that sets an internal validator, such as .isEmail(), .isLength(), .exists(), etc. If you call .withMessage() directly after .escape(), .trim(), .normalizeEmail(), or similar methods that are not validators, you'll get this error1.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ashutosh Singh