kylekatarnls/jade-php

View on GitHub

Showing 115 of 115 total issues

Argument 1 (extension) is \Phug\JsTransformerExtension but \Pug\Engine\Options::addExtension() takes \Phug\ExtensionInterface defined at /code/src/Pug/Engine/Keywords.php:42
Open

        $this->addExtension(new JsTransformerExtension());
Severity: Minor
Found in src/Pug/Engine/Options.php by phan

Call to undeclared method \Pug\Engine\OptionsHandler::addOptionNameHandlers
Open

        $this->addOptionNameHandlers(function ($name) {
Severity: Critical
Found in src/Pug/Engine/OptionsHandler.php by phan

Argument 1 (filename) is ?string but \unlink() takes string
Open

            unlink($path);
Severity: Minor
Found in src/Pug/Engine/PugJsEngine.php by phan

Call to undeclared method \Pug\Pug::getOption
Open

            'cacheFolderExists'     => !$this->getDefaultOption('cache_dir') || is_dir($this->getOption('cache_dir')),
Severity: Critical
Found in src/Pug/Pug.php by phan

Reference to constant class from undeclared class \Phug\Renderer\Adapter\StreamAdapter
Open

            '->stream() is no longer available, please use ' . StreamAdapter::class . ' instead',
Severity: Critical
Found in src/Pug/Pug.php by phan

Call to undeclared method \Pug\Engine\Keywords::setOption
Open

        $this->setOption(['keywords', $keyword], $action);
Severity: Critical
Found in src/Pug/Engine/Keywords.php by phan

Parameter $event has undeclared type \Phug\Compiler\Event\OutputEvent
Open

        $options['on_output'] = function (OutputEvent $event) use ($onOutput, $postRender) {
Severity: Minor
Found in src/Pug/Engine/OptionsHandler.php by phan

Call to undeclared method \Pug\Engine\PugJsEngine::mergeWithSharedVariables
Open

        $vars = $this->mergeWithSharedVariables($vars);
Severity: Critical
Found in src/Pug/Engine/PugJsEngine.php by phan

Returning type void but displayString() is declared to return string
Open

            return;
Severity: Minor
Found in src/Pug/Engine/Renderer.php by phan

Static call to undeclared method \Pug\Engine\Options::displayFile
Open

        parent::displayFile($input, $vars);
Severity: Critical
Found in src/Pug/Engine/Renderer.php by phan

Call to undeclared method \Pug\Filter\AbstractFilterBase::parse
Open

            $code = $this->parse($code, $options);
Severity: Critical
Found in src/Pug/Filter/AbstractFilterBase.php by phan

Call to undeclared method \Pug\Engine\Filters::getCompiler
Open

        $filter = $this->getCompiler()->getFilter($name);
Severity: Critical
Found in src/Pug/Engine/Filters.php by phan

Call to undeclared method \Pug\Engine\Keywords::initCompiler
Open

            $this->initCompiler();
Severity: Critical
Found in src/Pug/Engine/Keywords.php by phan

Call to undeclared method \Pug\Engine\Keywords::unsetOption
Open

            $this->unsetOption(['keywords', $keyword]);
Severity: Critical
Found in src/Pug/Engine/Keywords.php by phan

Call to method getInput from undeclared class \Phug\Lexer\Event\LexEvent
Open

                $event->setInput(call_user_func($preRender, $event->getInput()));
Severity: Critical
Found in src/Pug/Engine/OptionsHandler.php by phan

Argument 1 (input) is null but \Pug\Engine\PugJsEngine::renderWithJs() takes string defined at /code/src/Pug/Engine/PugJsEngine.php:190
Open

        return $this->renderWithJs(null, $path, $vars, $fallback);
Severity: Minor
Found in src/Pug/Engine/PugJsEngine.php by phan

Reference to undeclared property \Pug\Filter\WrapTagTrait->tag
Open

        if (isset($this->tag)) {
Severity: Minor
Found in src/Pug/Filter/WrapTagTrait.php by phan

Reference to undeclared property \Pug\Filter\WrapTagTrait->tag
Open

                '</' . $this->tag . '>';
Severity: Minor
Found in src/Pug/Filter/WrapTagTrait.php by phan

Call to undeclared method \Pug\Engine\Filters::getCompiler
Open

        return $this->getCompiler()->hasFilter($name);
Severity: Critical
Found in src/Pug/Engine/Filters.php by phan

Argument 1 (path) is ?string but \basename() takes string
Open

        $basename = basename($filename);
Severity: Minor
Found in src/Pug/Engine/PugJsEngine.php by phan
Severity
Category
Status
Source
Language