improved type hint

This commit is contained in:
Steffen Schröder 2014-05-13 16:00:25 +02:00
parent cdc8054371
commit 1fa1d7ee7d

View File

@ -83,11 +83,11 @@ class CommandManager implements CallbackListener {
/**
* Add a Listener Callback to the given Listener Array
*
* @param array $listenerArray
* @param array $listenerCallback
* @param string $command
* @param array $listenerArray
* @param callable $listenerCallback
* @param string $command
*/
private function addListenerCallback(array &$listenerArray, array $listenerCallback, $command) {
private function addListenerCallback(array &$listenerArray, callable $listenerCallback, $command) {
if (!array_key_exists($command, $listenerArray) || !is_array($listenerArray[$command])) {
// Init listeners array
$listenerArray[$command] = array();