[ 'input' => ' ' '7.0', 'issues_to_fix' => ['MismatchingDocblockParamType'], 'safe_types' => true, ], 'fixMismatchingDocblockWithDescriptionParamType70' => [ 'input' => ' ' '7.0', 'issues_to_fix' => ['MismatchingDocblockParamType'], 'safe_types' => true, ], 'fixNamespacedMismatchingDocblockParamsType70' => [ 'input' => ' ' '7.0', 'issues_to_fix' => ['MismatchingDocblockParamType'], 'safe_types' => true, ], 'noStringParamType' => [ 'input' => 'fooFoo("hello");', 'output' => 'fooFoo("hello");', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noStringParamTypeWithVariableCall' => [ 'input' => 'fooFoo("hello"); (new C)->fooFoo("hello");', 'output' => 'fooFoo("hello"); (new C)->fooFoo("hello");', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noStringParamTypeWithDocblockCall' => [ 'input' => 'fooFoo($a); }', 'output' => 'fooFoo($a); }', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noStringParamTypeWithDocblockAndDescriptionCall' => [ 'input' => 'fooFoo($ab); }', 'output' => 'fooFoo($ab); }', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noStringParamType56' => [ 'input' => 'fooFoo("hello");', 'output' => 'fooFoo("hello");', 'php_version' => '5.6', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noBoolParamTypeWithDefault' => [ 'input' => 'fooFoo(false);', 'output' => 'fooFoo(false);', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'noStringParamTypeParent' => [ 'input' => 'fooFoo("hello");', 'output' => 'fooFoo("hello");', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'stringParamTypeNoOp' => [ 'input' => 'fooFoo("hello");', 'output' => 'fooFoo("hello");', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'addMissingByRefParamType' => [ 'input' => 'foo($a);', 'output' => 'foo($a);', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'NamespacedParamNeeded' => [ 'input' => 'foo($a);', 'output' => 'foo($a);', 'php_version' => '7.1', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'StaticParamForbidden' => [ 'input' => 'foo($this->ret()); } public function ret(): static { return $this; } } class B extends A { } (new A)->test(); (new A)->test(); ', 'output' => 'foo($this->ret()); } public function ret(): static { return $this; } } class B extends A { } (new A)->test(); (new A)->test(); ', 'php_version' => '8.0', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => true, ], 'ChangingTypeOfExplicitMixedParam' => [ 'input' => 'setValue([1,2,3,4]); } ', 'output' => 'setValue([1,2,3,4]); } ', 'php_version' => '8.0', 'issues_to_fix' => ['MissingParamType'], 'safe_types' => false, ], ]; } }