Skip to content

Commit

Permalink
Merge pull request #3 from gou1/exception-bug-fix
Browse files Browse the repository at this point in the history
Fixed missing trailing \ for InvalidArgumentException
  • Loading branch information
rjkip committed May 15, 2014
2 parents 821c386 + 7912055 commit 87b2c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cobaia/Doctrine/MonologSQLLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(Logger $logger = null, StreamHandler $handler = null
{
$this->logger = $logger ?: new Logger('doctrine');
if (is_null($handler) && is_null($path)) {
throw new InvalidArgumentException('As you are not passing one handler, you must provide one path!');
throw new \InvalidArgumentException('As you are not passing one handler, you must provide one path!');
}
$handler = $handler ?: new StreamHandler($path . 'doctrine.log', Logger::DEBUG);
$this->logger->pushHandler($handler);
Expand Down

0 comments on commit 87b2c7d

Please sign in to comment.