zendframework / zf2-documentation

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

Callback options should be callbackOptions #1430

Closed mbn18 closed 9 years ago

mbn18 commented 9 years ago

Hi,

The docs state that:

$valid = new \Zend\Validator\Callback(array(
   'callback' => array('MyClass', 'myMethod'),
   'options'  => $options,
));

This does not work and should look like:

$valid = new \Zend\Validator\Callback(array(
   'callback' => array('MyClass', 'myMethod'),
   'callbackOptions'  => $options,
));
Ocramius commented 9 years ago

Handled in #1433