Property | Type | Description | |
---|---|---|---|
$arrayModifyingFunctions | array | ||
$arrayPointerModifyingFunctions | array | ||
$functionAnalyzer |
Method | Description | |
---|---|---|
__construct ( |
||
enterNode ( PhpParser\Node $node ) |
Method | Description | |
---|---|---|
checkAddingToArrayInByReferenceForeach ( PhpParser\Node $node ) | ||
checkArrayModificationByFunctionInByReferenceForeach ( PhpParser\Node $node ) | ||
checkInternalArrayPointerAccessInByValueForeach ( PhpParser\Node $node ) | ||
checkNestedByReferenceForeach ( PhpParser\Node\Stmt\Foreach_ $foreach ) | ||
getForeachVariableName ( PhpParser\Node\Stmt\Foreach_ $foreach ) : PhpParser\Node\Expr | string | void | ||
hasFunctionCallWithForeachArgument ( PhpParser\Node $node, array $functions, null | boolean $skippedByRefType = null ) : boolean | ||
isTargetLoopNode ( PhpParser\Node $node ) |
public __construct ( |
||
$functionAnalyzer |
protected checkAddingToArrayInByReferenceForeach ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected checkArrayModificationByFunctionInByReferenceForeach ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected checkInternalArrayPointerAccessInByValueForeach ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected checkNestedByReferenceForeach ( PhpParser\Node\Stmt\Foreach_ $foreach ) | ||
$foreach | PhpParser\Node\Stmt\Foreach_ |
protected getForeachVariableName ( PhpParser\Node\Stmt\Foreach_ $foreach ) : PhpParser\Node\Expr | string | void | ||
$foreach | PhpParser\Node\Stmt\Foreach_ | |
return | PhpParser\Node\Expr | string | void |
protected isTargetLoopNode ( PhpParser\Node $node ) | ||
$node | PhpParser\Node |
protected array $arrayPointerModifyingFunctions | ||
return | array |