kylekatarnls/jade-php

View on GitHub

Showing 115 of 115 total issues

Property \Pug\Engine\PugJsEngine->nodeEngine has undeclared type \NodejsPhpFallback\NodejsPhpFallback
Open

    protected $nodeEngine;
Severity: Minor
Found in src/Pug/Engine/PugJsEngine.php by phan

Class extends undeclared class \Phug\Optimizer (Did you mean class \Pug\Optimizer)
Open

class Optimizer extends PhugOptimizer
Severity: Critical
Found in src/Pug/Optimizer.php by phan

Call to method __construct from undeclared class \NodejsPhpFallback\NodejsPhpFallback
Open

            $this->nodeEngine = new NodejsPhpFallback($this->hasOption('node_path')
Severity: Critical
Found in src/Pug/Engine/PugJsEngine.php by phan

Class extends undeclared class \Phug\Parser (Did you mean class \Jade\Parser or class \Pug\Parser)
Open

class Parser extends \Phug\Parser
Severity: Critical
Found in src/Pug/Parser.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

Call to method execModuleScript from undeclared class \NodejsPhpFallback\NodejsPhpFallback
Open

        $result = $node->execModuleScript(
Severity: Critical
Found in src/Pug/Engine/PugJsEngine.php by phan

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

            : $this->getOption('cache_dir');
Severity: Critical
Found in src/Pug/Engine/PugJsEngine.php by phan

Method \Pug\Engine\Renderer::displayString is declared to return string but has no return value
Open

    public function displayString($input, array $vars = [], $filename = null)
Severity: Minor
Found in src/Pug/Engine/Renderer.php by phan

Method \Pug\Engine\Renderer::display is declared to return string but has no return value
Open

    public function display($input, array $vars = [], $filename = null)
Severity: Minor
Found in src/Pug/Engine/Renderer.php by phan

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

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

Argument 2 (newvalue) is 1 but \ini_set() takes string
Open

ini_set('display_errors', 1);
Severity: Minor
Found in example/bootstrap.php by phan

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

                $compiler->setOption($option, $this->getOption($option));
Severity: Critical
Found in src/Pug/Engine/Options.php by phan

Saw an @param annotation for input, but it was not found in the param list of function renderFile($path, array $vars = null) : string
Open

     * @param string $input pug file
Severity: Info
Found in src/Pug/Engine/Renderer.php by phan

Class extends undeclared class \Phug\Lexer (Did you mean class \Jade\Lexer or class \Pug\Lexer)
Open

class Lexer extends \Phug\Lexer
Severity: Critical
Found in src/Pug/Lexer.php by phan

Variable $message was undeclared, but array fields are being added to it.
Open

    $message['error']   = !!$_POST;
Severity: Info
Found in example/index.php by phan

Call to method __construct from undeclared class \JsPhpize\JsPhpizePhug
Open

            $compiler->addModule(new JsPhpizePhug($compiler));
Severity: Critical
Found in src/Pug/Engine/Options.php by phan

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

            if (in_array($extension, $this->getOption('extensions'))) {
Severity: Critical
Found in src/Pug/Engine/Renderer.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

Parameter $node has undeclared type \Pug\Nodes\Filter
Open

    public function __invoke(Filter $node, Compiler $compiler)
Severity: Minor
Found in src/Pug/Filter/AbstractFilter.php by phan

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

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