Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Correct function name #1524

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/src/modules/zend.validator.callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Consider the following class and method definition:
}

There are two ways to inform the validator of additional options: pass them in the constructor, or pass them to the
``setOptions()`` method.
``setCallbackOptions()`` method.

To pass them to the constructor, you would need to pass an array containing two keys, "callback" and "callbackOptions":

Expand All @@ -199,7 +199,7 @@ Otherwise, you may pass them to the validator after instantiation:
:linenos:

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

if ($valid->isValid($input)) {
// input appears to be valid
Expand All @@ -214,7 +214,7 @@ When there are additional values given to ``isValid()`` then these values will b
:linenos:

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

if ($valid->isValid($input, $additional)) {
// input appears to be valid
Expand Down