diff --git a/examples/PubSubContext.php b/examples/PubSubContext.php index 41a598ee..eee6d7e1 100644 --- a/examples/PubSubContext.php +++ b/examples/PubSubContext.php @@ -30,7 +30,7 @@ foreach ($pubsub as $message) { $pubsub->unsubscribe(); } else { - echo "Received an unregognized command: {$message->payload}.\n"; + echo "Received an unrecognized command: {$message->payload}.\n"; } } else { diff --git a/lib/Predis.php b/lib/Predis.php index 45607306..ba57ba2a 100644 --- a/lib/Predis.php +++ b/lib/Predis.php @@ -161,7 +161,7 @@ class Client { $connection = $this->_connection->getConnectionById($connectionAlias); if ($connection === null) { throw new \InvalidArgumentException( - "Invalid connection alias: '$connectionAlias'." + "Invalid connection alias: '$connectionAlias'" ); }