Skip to content

Commit

Permalink
refs #632 Remove is_null to be consistent with doctrine coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiago Brito authored and deeky666 committed Nov 5, 2014
1 parent 6b09709 commit b1cc410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public function convertBooleans($item)
return $this->doConvertBooleans(
$item,
function ($boolean) {
if (is_null($boolean)) {
if (null === $boolean) {
return 'NULL';
}
return true === $boolean ? 'true' : 'false';
Expand All @@ -825,7 +825,7 @@ public function convertBooleansToDatabaseValue($item)
return $this->doConvertBooleans(
$item,
function ($boolean) {
return is_null($boolean) ? null : (int) $boolean;
return null === $boolean ? null : (int) $boolean;
}
);
}
Expand Down

0 comments on commit b1cc410

Please sign in to comment.