1 | <?php |
||
13 | class QueryBuilder |
||
14 | { |
||
15 | use Traits\EscaperAware; |
||
16 | |||
17 | 1 | public function delete(?string $table = null, ?string $alias = null): Delete |
|
21 | |||
22 | 1 | public function insert(?string $table = null): Insert |
|
26 | |||
27 | /** |
||
28 | * @param string|array $columns |
||
29 | */ |
||
30 | 1 | public function select($columns = null): Select |
|
34 | |||
35 | 1 | public function update(?string $table = null, ?string $alias = null): Update |
|
39 | |||
40 | /** |
||
41 | * @param Snippet|string $columnName |
||
42 | */ |
||
43 | 1 | public function count($columnName, ?string $alias = null): Snippets\Count |
|
47 | |||
48 | 1 | public function distinct(string $columnName): Snippets\Distinct |
|
52 | } |
||
53 |
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.