fix the constructor's type-autodetection accepts wrong parameters
Merge branch 'feature/4326'

Close #4326
Merge pull request #4351 from noopable/patch-validator-notempty

fix the constructor's type-autodetection accepts wrong parameters
Merge branch 'hotfix/4351' into develop

Forward port #4351