mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
I'm not a native English speaker, and the same goes for many contributors from this library. Because of that, some messages just don't sound very good, so I updated a lot of them.
15 lines
No EOL
461 B
PHP
15 lines
No EOL
461 B
PHP
--FILE--
|
|
<?php
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
exceptionMessage(static fn() => v::numericVal()->assert('a'));
|
|
exceptionMessage(static fn() => v::not(v::numericVal())->assert('1'));
|
|
exceptionFullMessage(static fn() => v::numericVal()->assert('a'));
|
|
exceptionFullMessage(static fn() => v::not(v::numericVal())->assert('1'));
|
|
?>
|
|
--EXPECT--
|
|
"a" must be a numeric value
|
|
"1" must not be a numeric value
|
|
- "a" must be a numeric value
|
|
- "1" must not be a numeric value
|