if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $this->addError('email', 'email must be a valid email'); }
Pro tip: use ```triple backticks around text``` to write in code fences