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
Open
$code = '<?php ' . $this->compile($input, $filename);
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Dyiade->leftHand
defined at /code/src/JsPhpize/Nodes/Dyiade.php:8
Open
Open
$this->leftHand = $leftHand;
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Instruction->appendReturn
defined at /code/src/JsPhpize/Nodes/Instruction.php:9
Open
Open
$this->appendReturn = true;
- Exclude checks
Reference to undeclared property \JsPhpize\Nodes\Assignable->type
Open
Open
if ($assignation->leftHand instanceof Constant && $assignation->leftHand->type === 'constant') {
- Exclude checks
Reference to undeclared property \JsPhpize\Nodes\Assignable->children
Open
Open
if ($assignation->leftHand instanceof Variable && count($assignation->leftHand->children)) {
- Exclude checks
Reference to undeclared property \JsPhpize\Lexer\Scanner->engine
Open
Open
$constPrefix = $this->engine->getOption('constPrefix', JsPhpize::CONST_PREFIX);
- Exclude checks
Call to undeclared method \JsPhpize\Lexer\Scanner::token
Open
Open
return $this->token('constant', $constant);
- Exclude checks
Call to undeclared method \JsPhpize\Lexer\Scanner::exceptionInfos
Open
Open
throw new Exception('Variables cannot start with ' . $varPrefix . ', this prefix is reserved for JsPhpize' . $this->exceptionInfos(), 4);
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Block->type
defined at /code/src/JsPhpize/Nodes/Block.php:10
Open
Open
$this->type = $type;
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\HooksArray->data
defined at /code/src/JsPhpize/Nodes/ArrayBase.php:8
Open
Open
$this->data[] = $value;
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Ternary->trueValue
defined at /code/src/JsPhpize/Nodes/Ternary.php:9
Open
Open
$this->trueValue = $trueValue;
- Exclude checks
Call to undeclared method \JsPhpize\Parser\TokenExtractor::parseValue
Open
Open
return $this->parseValue($token);
- Exclude checks
Reference to undeclared property \JsPhpize\JsPhpizeOptions->options
Open
Open
return isset($this->options[$key]) ? $this->options[$key] : $default;
- Exclude checks
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
Open
yield $lexer->scan($this->regex, $this->type);
- Exclude checks
Call to undeclared method \JsPhpize\Lexer\Scanner::valueToken
Open
Open
return $this->valueToken('string', $matches);
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Block->multipleInstructions
defined at /code/src/JsPhpize/Nodes/Block.php:12
Open
Open
$this->multipleInstructions = true;
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Constant->dotChild
defined at /code/src/JsPhpize/Nodes/Constant.php:12
Open
Open
$this->dotChild = $dotChild;
- Exclude checks
Cannot modify read-only magic property \JsPhpize\Nodes\Value->before
defined at /code/src/JsPhpize/Nodes/Value.php:8
Open
Open
array_unshift($this->before, $before);
- Exclude checks
Assigning null
to property but \JsPhpize\Lexer\Lexer->tokenGenerator
is \Generator|\Generator<\JsPhpize\Lexer\Token>
Open
Open
$this->tokenGenerator = null;
- Exclude checks
Reference to undeclared property \JsPhpize\Lexer\Scanner->engine
Open
Open
$varPrefix = $this->engine->getOption('varPrefix', JsPhpize::VAR_PREFIX);
- Exclude checks