pug-php/js-phpize

View on GitHub

Showing 179 of 179 total issues

Argument 2 (filename) is ?string but \JsPhpize\JsPhpize::compile() takes string defined at /code/src/JsPhpize/JsPhpize.php:44
Open

            $code = '<?php ' . $this->compile($input, $filename);
Severity: Minor
Found in src/JsPhpize/JsPhpize.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Dyiade->leftHand defined at /code/src/JsPhpize/Nodes/Dyiade.php:8
Open

        $this->leftHand = $leftHand;
Severity: Minor
Found in src/JsPhpize/Nodes/Dyiade.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Instruction->appendReturn defined at /code/src/JsPhpize/Nodes/Instruction.php:9
Open

        $this->appendReturn = true;
Severity: Minor
Found in src/JsPhpize/Nodes/Instruction.php by phan

Reference to undeclared property \JsPhpize\Nodes\Assignable->type
Open

        if ($assignation->leftHand instanceof Constant && $assignation->leftHand->type === 'constant') {
Severity: Minor
Found in src/JsPhpize/Compiler/Compiler.php by phan

Reference to undeclared property \JsPhpize\Nodes\Assignable->children
Open

        if ($assignation->leftHand instanceof Variable && count($assignation->leftHand->children)) {
Severity: Minor
Found in src/JsPhpize/Compiler/Compiler.php by phan

Reference to undeclared property \JsPhpize\Lexer\Scanner->engine
Open

        $constPrefix = $this->engine->getOption('constPrefix', JsPhpize::CONST_PREFIX);
Severity: Minor
Found in src/JsPhpize/Lexer/Scanner.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::token
Open

        return $this->token('constant', $constant);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::exceptionInfos
Open

            throw new Exception('Variables cannot start with ' . $varPrefix . ', this prefix is reserved for JsPhpize' . $this->exceptionInfos(), 4);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Block->type defined at /code/src/JsPhpize/Nodes/Block.php:10
Open

        $this->type = $type;
Severity: Minor
Found in src/JsPhpize/Nodes/Block.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\HooksArray->data defined at /code/src/JsPhpize/Nodes/ArrayBase.php:8
Open

            $this->data[] = $value;
Severity: Minor
Found in src/JsPhpize/Nodes/HooksArray.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Ternary->trueValue defined at /code/src/JsPhpize/Nodes/Ternary.php:9
Open

        $this->trueValue = $trueValue;
Severity: Minor
Found in src/JsPhpize/Nodes/Ternary.php by phan

Call to undeclared method \JsPhpize\Parser\TokenExtractor::parseValue
Open

            return $this->parseValue($token);
Severity: Critical
Found in src/JsPhpize/Parser/TokenExtractor.php by phan

Reference to undeclared property \JsPhpize\JsPhpizeOptions->options
Open

        return isset($this->options[$key]) ? $this->options[$key] : $default;
Severity: Minor
Found in src/JsPhpize/JsPhpizeOptions.php by phan

Yield statement has a value with type false but lexWith() is declared to yield values of type \JsPhpize\Lexer\Token in \Generator<\JsPhpize\Lexer\Token>
Open

        yield $lexer->scan($this->regex, $this->type);
Severity: Minor
Found in src/JsPhpize/Lexer/Pattern.php by phan

Call to undeclared method \JsPhpize\Lexer\Scanner::valueToken
Open

        return $this->valueToken('string', $matches);
Severity: Critical
Found in src/JsPhpize/Lexer/Scanner.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Block->multipleInstructions defined at /code/src/JsPhpize/Nodes/Block.php:12
Open

        $this->multipleInstructions = true;
Severity: Minor
Found in src/JsPhpize/Nodes/Block.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Constant->dotChild defined at /code/src/JsPhpize/Nodes/Constant.php:12
Open

        $this->dotChild = $dotChild;
Severity: Minor
Found in src/JsPhpize/Nodes/Constant.php by phan

Cannot modify read-only magic property \JsPhpize\Nodes\Value->before defined at /code/src/JsPhpize/Nodes/Value.php:8
Open

        array_unshift($this->before, $before);
Severity: Minor
Found in src/JsPhpize/Nodes/Value.php by phan

Assigning null to property but \JsPhpize\Lexer\Lexer->tokenGenerator is \Generator|\Generator<\JsPhpize\Lexer\Token>
Open

                $this->tokenGenerator = null;
Severity: Minor
Found in src/JsPhpize/Lexer/Lexer.php by phan

Reference to undeclared property \JsPhpize\Lexer\Scanner->engine
Open

        $varPrefix = $this->engine->getOption('varPrefix', JsPhpize::VAR_PREFIX);
Severity: Minor
Found in src/JsPhpize/Lexer/Scanner.php by phan
Severity
Category
Status
Source
Language