Namespace: Sphp \ Validators \ Datetime
The DatetimeFormat validates only that the given input has a non empty value.
This differs from empty and thus native boolean conversion in PHP.
About error messages provided by validators:
An error message is a relatively short text message that describes a problematic
situation. An error message generally indicates that an operation failed and may
imply if not direct the user to a corrective action.[1]
Predefined error message Template formatting parameters:
:value - the string representation of the validated $value
:type - the datatype of the validated $value
:type = "boolean" - for boolean type
:type = "integer" - for integer type
:type = "float" - for float type
:type = "string" - for string type
:type = "array" - for array type
:type = "object" - for object type
:type = "resource" - for resource type
:type = "resource (closed)" - for closed resource type
:type = "NULL" - for nulls
:type = "unknown type" - for unknown types
:strict-type - the strict datatype of the validated $value differs from :type
any object corresponds to the name of the class get_class() results
Error Class "PHPStan\PhpDocParser\Parser\TypeParser" not found code: 0 file: /home3/fjlpxeha/playground.samiholck.fi/vendor/phpdocumentor/type-resolver/src/TypeResolver.php line: 232 Trace information file: /home3/fjlpxeha/playground.samiholck.fi/vendor/phpdocumentor/reflection-docblock/src/DocBlock/StandardTagFactory.php
line: 137
class: phpDocumentor\Reflection\TypeResolver
instance method: __construct
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/phpdocumentor/reflection-docblock/src/DocBlockFactory.php
line: 60
class: phpDocumentor\Reflection\DocBlock\StandardTagFactory
static method: createInstance
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/Reflection/Utils/DocBlockParser.php
line: 37
class: phpDocumentor\Reflection\DocBlockFactory
static method: createInstance
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/Reflection/Signatures/MagicMethodViewBuilder.php
line: 35
class: Sphp\Documentation\Reflection\Utils\DocBlockParser
instance method: __construct
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Documentation/Reflection/Signatures/ClassViewBuilder.php
line: 48
class: Sphp\Documentation\Reflection\Signatures\MagicMethodViewBuilder
instance method: __construct
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php
line: 125
class: Sphp\Documentation\Reflection\Signatures\ClassViewBuilder
instance method: __construct
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php
line: 55
class: DI\Definition\Resolver\ObjectCreator
instance method: createInstance
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/php-di/php-di/src/Definition/Resolver/ResolverDispatcher.php
line: 62
class: DI\Definition\Resolver\ObjectCreator
instance method: resolve
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/php-di/php-di/src/Container.php
line: 360
class: DI\Definition\Resolver\ResolverDispatcher
instance method: resolve
file: /home3/fjlpxeha/playground.samiholck.fi/vendor/php-di/php-di/src/Container.php
line: 142
class: DI\Container
instance method: resolveDefinition
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-validators-datetime_validation.php
line: 21
class: DI\Container
instance method: get
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 68
function: include
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-validators-datetime_validation.php' file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line: 43
class: Man\Routers\ManualPageBuilder
instance method: parse
class: Man\Routers\ManualPageBuilder
instance method: __invoke
file: /home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
line: 150
function: call_user_func
file: /home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
line: 32
class: Sphp\Router\Router
instance method: execute
file: /home3/fjlpxeha/playground.samiholck.fi/index.php
line: 7
function: require_once
arguments: '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'