mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59: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
476 B
PHP
15 lines
No EOL
476 B
PHP
--FILE--
|
|
<?php
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
exceptionMessage(static fn() => v::stringVal()->assert([]));
|
|
exceptionMessage(static fn() => v::not(v::stringVal())->assert(true));
|
|
exceptionFullMessage(static fn() => v::stringVal()->assert(new stdClass()));
|
|
exceptionFullMessage(static fn() => v::not(v::stringVal())->assert(42));
|
|
?>
|
|
--EXPECT--
|
|
`[]` must be a string value
|
|
`true` must not be a string value
|
|
- `stdClass {}` must be a string value
|
|
- 42 must not be a string value
|