1 | <?php |
||
9 | trait SendGrid |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @param null|array $params |
||
14 | * @return $this |
||
15 | */ |
||
16 | public function sendgrid($params) |
||
25 | |||
26 | /** |
||
27 | * @return string |
||
28 | */ |
||
29 | private function mailDriver() |
||
33 | |||
34 | /** |
||
35 | * @param array $params |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function sgEncode($params) |
||
45 | |||
46 | /** |
||
47 | * @param string $strParams |
||
48 | * @return array |
||
49 | */ |
||
50 | public static function sgDecode($strParams) |
||
58 | |||
59 | } |
||
60 |
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.