pug-php/pug-yii2

View on GitHub

Showing 30 of 30 total issues

Call to method compile from undeclared class \Pug\Pug
Open

            $this->pug->compile(''); // Init ->files
Severity: Critical
Found in ViewRenderer.php by phan

@throws type of initCachePath has undeclared type \yii\base\Exception (Did you mean class \Exception)
Open

    protected function initCachePath()
Severity: Minor
Found in ViewRenderer.php by phan

@throws annotation of init has suspicious class type \Pug\Yii\Exception, which does not extend Error/Exception (Did you mean class \Exception)
Open

    public function init()
Severity: Minor
Found in ViewRenderer.php by phan

Call with 1 arg(s) to \Pug\Yii\Exception::__construct() which only takes 0 arg(s) defined at /code/Exception.php:13
Open

            throw new Exception(Yii::t('app', 'Pug cache path is not writable.'));
Severity: Info
Found in ViewRenderer.php by phan

Expected an object instance or the name of a class but saw expression with type 'Pug\\Pug'|string
Open

        $this->pug = new $className(array_merge([
Severity: Minor
Found in ViewRenderer.php by phan

Checking instanceof against undeclared class \Tale\Pug\Renderer
Open

        if ($this->pug instanceof \Tale\Pug\Renderer && !($this->pug instanceof \Phug\Renderer)) {
Severity: Critical
Found in ViewRenderer.php by phan

Reference to static property app from undeclared class \Yii
Open

            'app'  => Yii::$app,
Severity: Critical
Found in ViewRenderer.php by phan

Property \Pug\Yii\ViewRenderer->pug has undeclared type \Pug\Pug
Open

    public $pug;
Severity: Minor
Found in ViewRenderer.php by phan

Reference to undeclared class \Pug\Pug
Open

        $this->pug = new $className(array_merge([
Severity: Critical
Found in ViewRenderer.php by phan

Call to method t from undeclared class \Yii
Open

            throw new Exception(Yii::t('app', 'Pug cache path is not readable.'));
Severity: Critical
Found in ViewRenderer.php by phan
Severity
Category
Status
Source
Language