Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#2135 from Thinkscape/h…
Browse files Browse the repository at this point in the history
…otfix/callable-not-callback

Change all 'callback' typehints to 'callable'
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ public function getCallbackParams()
/**
* Calls the filter per callback
*
* @param mixed $value Options for the set callback
* @return mixed Result from the filter which was callbacked
* @param mixed $value Options for the set callable
* @return mixed Result from the filter which was called
*/
public function filter($value)
{
Expand Down
2 changes: 1 addition & 1 deletion src/FilterChain.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function plugin($name, array $options = array())
/**
* Attach a filter to the chain
*
* @param callback|FilterInterface $callback A Filter implementation or valid PHP callback
* @param callable|FilterInterface $callback A Filter implementation or valid PHP callback
* @param int $priority Priority at which to enqueue filter; defaults to 1000 (higher executes earlier)
* @return FilterChain
*/
Expand Down

0 comments on commit 5a9a928

Please sign in to comment.