1 | <?php |
||
8 | class IniWriter |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @param string $filename |
||
13 | * @param array $config |
||
14 | * @param string $header |
||
15 | * |
||
16 | * @return int |
||
17 | */ |
||
18 | public function toFile($filename, array $config, $header = null) |
||
23 | |||
24 | /** |
||
25 | * @param array $config |
||
26 | * @param null $header |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function toString(array $config, $header = null) |
||
97 | |||
98 | /** |
||
99 | * @param $value |
||
100 | * |
||
101 | * @return int|string |
||
102 | */ |
||
103 | protected function encodeValue($value) |
||
117 | |||
118 | } |
||
119 |
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.