We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how can I customize response messages for the user
try { $arr = ['title' => 'aa', 'bar' => 'a', 'foo' => 'a']; v::assert($arr['title'], 'string:5', 'example message 1'); v::assert($arr['bar'], 'string:15', 'example message 2'); v::assert($arr['foo'], 'int', 'example message 3'); } catch (AssertionException $e) { echo '<pre>'; print_r($e->getMessage()); }
current answer The **example message 1** expects to be string in range 5, string 'aa' given.
The **example message 1** expects to be string in range 5, string 'aa' given.
the current message appears between the default message.
thanks
The text was updated successfully, but these errors were encountered:
Can you explain it any further, I don't understand.
Sorry, something went wrong.
No branches or pull requests
how can I customize response messages for the user
try { $arr = ['title' => 'aa', 'bar' => 'a', 'foo' => 'a']; v::assert($arr['title'], 'string:5', 'example message 1'); v::assert($arr['bar'], 'string:15', 'example message 2'); v::assert($arr['foo'], 'int', 'example message 3'); } catch (AssertionException $e) { echo '<pre>'; print_r($e->getMessage()); }
current answer
The **example message 1** expects to be string in range 5, string 'aa' given.
the current message appears between the default message.
thanks
The text was updated successfully, but these errors were encountered: