diff --git a/README.md b/README.md index ec2f449..bcfe12f 100644 --- a/README.md +++ b/README.md @@ -445,7 +445,7 @@ caused by invalid SQL queries. The `close` event will be emitted once the connection closes (terminates). ```php -$connecion->on('close', function () { +$connection->on('close', function () { echo 'Connection closed' . PHP_EOL; }); ``` diff --git a/src/ConnectionInterface.php b/src/ConnectionInterface.php index 46a3fc8..a5d225c 100644 --- a/src/ConnectionInterface.php +++ b/src/ConnectionInterface.php @@ -33,7 +33,7 @@ * The `close` event will be emitted once the connection closes (terminates). * * ```php - * $connecion->on('close', function () { + * $connection->on('close', function () { * echo 'Connection closed' . PHP_EOL; * }); * ```