[ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontRemovePossiblyUndefined' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableFromTry' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableAndFunctionCall' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableTwoVar' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableTwoVarFunctionCalls' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableClassMethod' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableFunctionCallAndStrLiteral' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableChainAssignment' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeTwoUnusedVariableChainAssignment' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeAllUnusedVariableChainAssignment' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedArrayAccess' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeEmptyArrayAssign' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedArrayAssignInt' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedArrayAssignCallable' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarShellExec' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarExit' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarTwoPass' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'SKIPPED-removeUnusedVarAssignByRefToSubsequentlyUsedVariable' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarAssignByRef' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarAssignByRefPartial' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarAssignByRefPartialWithSpaceAfter' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVarNewObject' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedChainMixedAssign' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedUnchainedAssign' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeUnusedVariableBinaryOp' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontremoveUnusedVariableFor' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontremoveUnusedVariableWhile' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontRemoveUnusedVariableInsideIf' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'donRemoveSuppressedUnusedVariable' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'removeLongUnusedAssignment' => [ 'input' => 'foo = $foo; } public function getFoo() : void { return "abular" . $this->foo; } } /** * @psalm-pure */ function makeA(string $s) : A { return new A($s); } function foo() : void { $a = makeA("hello")->getFoo(); }', 'output' => 'foo = $foo; } public function getFoo() : void { return "abular" . $this->foo; } } /** * @psalm-pure */ function makeA(string $s) : A { return new A($s); } function foo() : void { }', 'php_version' => '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontRemoveUsedToStringCall' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], 'dontRemoveUnusedClosureUse' => [ 'input' => ' ' '7.1', 'issues_to_fix' => ['UnusedVariable'], 'safe_types' => true, ], ]; } }