Skip to content

Commit

Permalink
Merge pull request phalcon#5 from ilyk/master
Browse files Browse the repository at this point in the history
Added $expression to logger::warning call
  • Loading branch information
sjinks committed Sep 26, 2013
2 parents 942e282 + 7745db8 commit 13d2c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Expression.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ public function compileConstant($expression, CompilationContext $compilationCont

$exists = true;
if (!defined($expression['value'])) {
$compilationContext->logger->warning("Constant \"" . $expression['value'] . "\" does not exist at compile time", "nonexistant-constant");
$compilationContext->logger->warning("Constant \"" . $expression['value'] . "\" does not exist at compile time", "nonexistant-constant", $expression);
$exists = false;
}

Expand Down Expand Up @@ -1100,7 +1100,7 @@ public function compile(CompilationContext $compilationContext)

case 'list':
if ($expression['left']['type'] == 'list') {
$compilationContext->logger->warning("Unnecessary extra parentheses", "extra-parentheses");
$compilationContext->logger->warning("Unnecessary extra parentheses", "extra-parentheses", $expression);
}
$numberPrints = $compilationContext->codePrinter->getNumberPrints();
$expr = new Expression($expression['left']);
Expand Down

0 comments on commit 13d2c02

Please sign in to comment.