Update ConnectionFactory.php

Minor typo: missing square bracket on error message.