Fix sometimes validation for nested arrays
Added some typehints and minor docblock fixes
Merge pull request #4076 from jarektkaczyk/bugfix/Fixes-sometimes-validation-for-nested-arrays

Fix sometimes validation for nested arrays
Merge branch '4.1' into 4.2
Fix spacing.
Spaces, not tabs.
Remove duplicate code
Fixed various docblocks
Merge pull request #5056 from lucasmichot/4.2-validator

[4.2] Validator : remove duplicate code
Fixed throws docs
Merge.