Update ConnectionFactory.php

Minor typo: missing square bracket on error message.
Merge pull request #996 from helmut/patch-2

Minor Typo