fix the constructor's type-autodetection accepts wrong parameters
Merge pull request #4351 from noopable/patch-validator-notempty

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

Close #4351