瀏覽代碼

Slight micro-optimization.

Daniele Alessandri 15 年之前
父節點
當前提交
d3ba25436c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/Predis.php

+ 2 - 2
lib/Predis.php

@@ -460,12 +460,12 @@ abstract class Command {
 
     public function setArguments(/* arguments */) {
         $this->_arguments = $this->filterArguments(func_get_args());
-        $this->_hash = null;
+        unset($this->_hash);
     }
 
     public function setArgumentsArray(Array $arguments) {
         $this->_arguments = $this->filterArguments($arguments);
-        $this->_hash = null;
+        unset($this->_hash);
     }
 
     public function getArguments() {