From: Roland Häder Date: Tue, 4 Mar 2008 19:30:29 +0000 (+0000) Subject: type hints added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=745d427070890eae26f9f3eb3cb25e10d831aacc;hp=f4d0d12a126bcc1b0d19c953fa555258b348e455;p=hub.git type hints added --- diff --git a/application/hub/exceptions/client/class_HubHelloException.php b/application/hub/exceptions/client/class_HubHelloException.php index 597af222a..505cae52e 100644 --- a/application/hub/exceptions/client/class_HubHelloException.php +++ b/application/hub/exceptions/client/class_HubHelloException.php @@ -28,7 +28,7 @@ class HubHelloException extends HubException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Peer %s has not replyed our %s request within %d retries.
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/client/class_HubPeerAuthorizationException.php b/application/hub/exceptions/client/class_HubPeerAuthorizationException.php index 9018eb290..3df17bea9 100644 --- a/application/hub/exceptions/client/class_HubPeerAuthorizationException.php +++ b/application/hub/exceptions/client/class_HubPeerAuthorizationException.php @@ -28,7 +28,7 @@ class HubPeerAuthorizationException extends HubException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Peer %s has reached the maximum of %d authorization tries. Disconnecting peer....
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/client/class_HubPeerTimeoutException.php b/application/hub/exceptions/client/class_HubPeerTimeoutException.php index ead9caa6f..312ea50df 100644 --- a/application/hub/exceptions/client/class_HubPeerTimeoutException.php +++ b/application/hub/exceptions/client/class_HubPeerTimeoutException.php @@ -28,7 +28,7 @@ class HubPeerTimeoutException extends HubException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Peer %s is no longer responding. Trying to disconnect the peer...
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/commands/class_UnexpectedAwaitCommandException.php b/application/hub/exceptions/commands/class_UnexpectedAwaitCommandException.php index f5b916eb7..cc4c79029 100644 --- a/application/hub/exceptions/commands/class_UnexpectedAwaitCommandException.php +++ b/application/hub/exceptions/commands/class_UnexpectedAwaitCommandException.php @@ -28,7 +28,7 @@ class UnexpectedAwaitCommandException extends HubException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Not awaiting command %s from peer %s
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/master/class_HubMasterDisconnectedException.php b/application/hub/exceptions/master/class_HubMasterDisconnectedException.php index 9164b5651..782aa1ac2 100644 --- a/application/hub/exceptions/master/class_HubMasterDisconnectedException.php +++ b/application/hub/exceptions/master/class_HubMasterDisconnectedException.php @@ -28,7 +28,7 @@ class HubMasterDisconnectedException extends HubException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Raw message received: %s
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/connector/class_SocketAcceptException.php b/application/hub/exceptions/socket/connector/class_SocketAcceptException.php index 70b1b7ebc..ba2d03b29 100644 --- a/application/hub/exceptions/socket/connector/class_SocketAcceptException.php +++ b/application/hub/exceptions/socket/connector/class_SocketAcceptException.php @@ -28,7 +28,7 @@ class SocketAcceptException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] socket_accept() has failed. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/connector/class_SocketSelectorException.php b/application/hub/exceptions/socket/connector/class_SocketSelectorException.php index 38234ae3a..83f7d8ade 100644 --- a/application/hub/exceptions/socket/connector/class_SocketSelectorException.php +++ b/application/hub/exceptions/socket/connector/class_SocketSelectorException.php @@ -28,7 +28,7 @@ class SocketSelectorException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] socket_select() has failed. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/init/class_SocketBindException.php b/application/hub/exceptions/socket/init/class_SocketBindException.php index caef6f3f9..6b71716e8 100644 --- a/application/hub/exceptions/socket/init/class_SocketBindException.php +++ b/application/hub/exceptions/socket/init/class_SocketBindException.php @@ -28,7 +28,7 @@ class SocketBindException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Socket konnte nicht an %s:%d gebunden werden. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/init/class_SocketConnectException.php b/application/hub/exceptions/socket/init/class_SocketConnectException.php index 3059677e5..879cea4b6 100644 --- a/application/hub/exceptions/socket/init/class_SocketConnectException.php +++ b/application/hub/exceptions/socket/init/class_SocketConnectException.php @@ -28,7 +28,7 @@ class SocketConnectException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] socket_connect() has failed. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/init/class_SocketCreationException.php b/application/hub/exceptions/socket/init/class_SocketCreationException.php index 2991fc06e..eaeae36a3 100644 --- a/application/hub/exceptions/socket/init/class_SocketCreationException.php +++ b/application/hub/exceptions/socket/init/class_SocketCreationException.php @@ -28,7 +28,7 @@ class SocketCreationException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Socket konnte nicht erstellt werden. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/init/class_SocketListeningException.php b/application/hub/exceptions/socket/init/class_SocketListeningException.php index 979b1b1dd..f6fce58ff 100644 --- a/application/hub/exceptions/socket/init/class_SocketListeningException.php +++ b/application/hub/exceptions/socket/init/class_SocketListeningException.php @@ -28,7 +28,7 @@ class SocketListeningException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] socket_listen() has failed. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/init/class_SocketSetupException.php b/application/hub/exceptions/socket/init/class_SocketSetupException.php index 3f3f9141c..789e6d110 100644 --- a/application/hub/exceptions/socket/init/class_SocketSetupException.php +++ b/application/hub/exceptions/socket/init/class_SocketSetupException.php @@ -28,7 +28,7 @@ class SocketSetupException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Socket konnte nicht konfiguriert werden. Reason: %s (Code: %d)", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/peer/class_BrokenPipeException.php b/application/hub/exceptions/socket/peer/class_BrokenPipeException.php index 8f7d1a88f..4217623b6 100644 --- a/application/hub/exceptions/socket/peer/class_BrokenPipeException.php +++ b/application/hub/exceptions/socket/peer/class_BrokenPipeException.php @@ -28,7 +28,7 @@ class BrokenPipeException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Connection lost to peer %s. Error message: %s (Code: %d)
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/peer/class_IPSpoofingException.php b/application/hub/exceptions/socket/peer/class_IPSpoofingException.php index 85516133f..6dab992be 100644 --- a/application/hub/exceptions/socket/peer/class_IPSpoofingException.php +++ b/application/hub/exceptions/socket/peer/class_IPSpoofingException.php @@ -28,7 +28,7 @@ class IPSpoofingException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Peer-IP hat sich von %s auf %s geändert.
\n", $msgArray['this']->__toString(), diff --git a/application/hub/exceptions/socket/peer/class_PeerSocketException.php b/application/hub/exceptions/socket/peer/class_PeerSocketException.php index 9d1278d2f..b5f40eddd 100644 --- a/application/hub/exceptions/socket/peer/class_PeerSocketException.php +++ b/application/hub/exceptions/socket/peer/class_PeerSocketException.php @@ -28,7 +28,7 @@ class PeerSocketException extends SocketException { * @param $code Code number for the exception * @return void */ - public final function __construct ($msgArray, $code) { + public final function __construct (array $msgArray, $code) { // Construct the message $message = sprintf("[%s:%d] Peer-Socket ist ungültig. Datentyp: %s
\n", $msgArray['this']->__toString(),