Commit e76001cb authored by javer's avatar javer

Fixed equal sign

parent 5da7198b
...@@ -83,11 +83,11 @@ class PDOStatement extends \PDOStatement implements Statement ...@@ -83,11 +83,11 @@ class PDOStatement extends \PDOStatement implements Statement
*/ */
public function fetch($fetchMode = null, $cursorOrientation = null, $cursorOffset = null) public function fetch($fetchMode = null, $cursorOrientation = null, $cursorOffset = null)
{ {
if ($fetchMode == null && $cursorOrientation == null && $cursorOffset === null) { if ($fetchMode === null && $cursorOrientation === null && $cursorOffset === null) {
return parent::fetch(); return parent::fetch();
} }
if ($cursorOrientation == null && $cursorOffset === null) { if ($cursorOrientation === null && $cursorOffset === null) {
return parent::fetch($fetchMode); return parent::fetch($fetchMode);
} }
...@@ -103,15 +103,15 @@ class PDOStatement extends \PDOStatement implements Statement ...@@ -103,15 +103,15 @@ class PDOStatement extends \PDOStatement implements Statement
*/ */
public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null) public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
{ {
if ($fetchMode == null && $fetchArgument == null && $ctorArgs == null) { if ($fetchMode === null && $fetchArgument === null && $ctorArgs === null) {
return parent::fetchAll(); return parent::fetchAll();
} }
if ($fetchArgument == null && $ctorArgs == null) { if ($fetchArgument === null && $ctorArgs === null) {
return parent::fetchAll($fetchMode); return parent::fetchAll($fetchMode);
} }
if ($ctorArgs == null) { if ($ctorArgs === null) {
return parent::fetchAll($fetchMode, $fetchArgument); return parent::fetchAll($fetchMode, $fetchArgument);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment