1 | <?php |
||
18 | class Connection extends \hiqdev\hiart\rest\Connection implements ConnectionInterface |
||
19 | { |
||
20 | public $queryBuilderClass = QueryBuilder::class; |
||
21 | |||
22 | public $baseUri = 'https://api.github.com/'; |
||
23 | |||
24 | public static $dbname = 'github'; |
||
25 | |||
26 | public $name = 'github'; |
||
27 | |||
28 | 2 | public static function getDb($name = null, $class = ConnectionInterface::class) |
|
32 | } |
||
33 |
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.