It seems like $header defined by parameter $header on line 18 can also be of type string; however, Bavix\SDK\FileLoader\IniWriter::toString() does only seem to accept null, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
21
return File::put($filename, $ini);
22
}
23
24
/**
25
* @param array $config
26
* @param null $header
27
*
28
* @return string
29
*/
30
public function toString(array $config, $header = null)
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.