mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Use static:: instead of $this for static method calls
This commit is contained in:
@ -195,7 +195,7 @@ abstract class Application extends Module
|
||||
public function __construct($config = [])
|
||||
{
|
||||
Yii::$app = $this;
|
||||
$this->setInstance($this);
|
||||
static::setInstance($this);
|
||||
|
||||
$this->state = self::STATE_BEGIN;
|
||||
|
||||
|
Reference in New Issue
Block a user