diff --git a/extensions/mutex/yii/mutex/Mutex.php b/extensions/mutex/yii/mutex/Mutex.php index db14ce8..a75f160 100644 --- a/extensions/mutex/yii/mutex/Mutex.php +++ b/extensions/mutex/yii/mutex/Mutex.php @@ -35,7 +35,7 @@ abstract class Mutex extends Component { if ($this->autoRelease) { $locks = &$this->_locks; - register_shutdown_function(function () use ($this, &$locks) { + register_shutdown_function(function () use (&$locks) { foreach ($locks as $lock) { $this->release($lock); } diff --git a/framework/yii/grid/ActionColumn.php b/framework/yii/grid/ActionColumn.php index aae59ae..b4b0960 100644 --- a/framework/yii/grid/ActionColumn.php +++ b/framework/yii/grid/ActionColumn.php @@ -88,7 +88,7 @@ class ActionColumn extends Column */ protected function renderDataCellContent($model, $index) { - return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($this, $model) { + return preg_replace_callback('/\\{(\w+)\\}/', function ($matches) use ($model) { $name = $matches[1]; if (isset($this->buttons[$name])) { return call_user_func($this->buttons[$name], $model, $this);