zendframework / zf2-documentation

Zend Framework 2 documentation sources
BSD 3-Clause "New" or "Revised" License
190 stars 570 forks source link

IsInstanceOf Validator is not documented #1437

Closed mbn18 closed 8 years ago

mbn18 commented 9 years ago

we can add example like:

$validator = new \Zend\Validator\IsInstanceOf(array(
    'className' => '\\NameSpace\\Class\\Path', 
));
echo $validator->isValid($anObject);

I can also do it but I need to know where? the doc on git is not the same as on the ZF2 site

Ocramius commented 9 years ago

Please don't prefix FQCN with \ when in string context ;-)

Check https://github.com/zendframework/zf2-documentation/tree/master/docs/languages/en/modules

mbn18 commented 9 years ago

Will follow the best practice of copy paste from others ;)

froschdesign commented 9 years ago

Duplicates #942