Skip to content
This repository has been archived by the owner on Jan 29, 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 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Pattern/CallbackCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function setOptions(PatternOptions $options)
/**
* Call the specified callback or get the result from cache
*
* @param callback $callback A valid callback
* @param callable $callback A valid callback
* @param array $args Callback arguments
* @return mixed Result
* @throws Exception
Expand Down Expand Up @@ -110,7 +110,7 @@ public function __call($function, array $args)
* Generate a unique key in base of a key representing the callback part
* and a key representing the arguments part.
*
* @param callback $callback A valid callback
* @param callable $callback A valid callback
* @param array $args Callback arguments
* @return string
* @throws Exception
Expand All @@ -124,7 +124,7 @@ public function generateKey($callback, array $args = array())
* Generate a unique key in base of a key representing the callback part
* and a key representing the arguments part.
*
* @param callback $callback A valid callback
* @param callable $callback A valid callback
* @param array $args Callback arguments
* @return string
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/Pattern/ClassCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function generateKey($method, array $args = array())
* Generate a unique key in base of a key representing the callback part
* and a key representing the arguments part.
*
* @param callback $callback A valid callback
* @param callable $callback A valid callback
* @param array $args Callback arguments
* @return string
* @throws Exception
Expand Down
2 changes: 1 addition & 1 deletion src/Pattern/ObjectCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function generateKey($method, array $args = array())
* Generate a unique key in base of a key representing the callback part
* and a key representing the arguments part.
*
* @param callback $callback A valid callback
* @param callable $callback A valid callback
* @param array $args Callback arguments
* @return string
* @throws Exception
Expand Down

0 comments on commit 16ff5c5

Please sign in to comment.