Skip to content
This repository has been archived by the owner on Jan 31, 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
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CallbackHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class CallbackHandler
{
/**
* @var string|array PHP callback to invoke
* @var string|array|callable PHP callback to invoke
*/
protected $callback;

Expand All @@ -52,9 +52,9 @@ class CallbackHandler
/**
* Constructor
*
* @param string $event Event to which slot is subscribed
* @param string|array|object $callback PHP callback
* @param array $options Options used by the callback handler (e.g., priority)
* @param string $event Event to which slot is subscribed
* @param string|array|object|callable $callback PHP callback
* @param array $options Options used by the callback handler (e.g., priority)
* @return void
*/
public function __construct($callback, array $metadata = array())
Expand Down

0 comments on commit ed502d9

Please sign in to comment.