[ '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, ], '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, ], ]; } }