Results 16 comments of cranetm

Please, give an example with that "unrecognized" type.

I understand, this is a kind of "protection of Fools". For some developers it can be an issue, i agree. I will add corresponding exception, thank you for explanation.

About short and long forms i agree, them could be added to switch-case. > why not use Yii's \yii\base\Model Because this library was developed(in my old project) for another framework...

The most reasonable here is log warning in application.log. Null result is logical, because value does not meet the DTO. Thats development issue and exists only in dev process. DTO's...

Maybe throwing exception in DEV environment makes sense. But in PRODUCTION it should be just warning.

Why you cannot use Dto[]? If you don't need strict validation - just do not use it. Leave phpdoc comment empty for your parameter or for return.

Nested arrays like `["foo", "bar", 1, [1,2,3]]` not a strict type at all. Use objects! ;)

JSONRPC just protocol, you can pass through any structure you want. This library includes strict validation. It supports array, but array of one of simple type or Object. If you...

It should not convert to null if there is no validation. I'll take a look.

Actually I cant see any benefits here. Strict type validation becomes to something else. If you have similar DTO, but one or more properties have different type - you can...