It seems like $columns defined by parameter $columns on line 30 can also be of type null or string; however, Puzzle\QueryBuilder\Queries\Select::__construct() does only seem to accept array, 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...
33
}
34
35
1
public function update(?string $table = null, ?string $alias = null): Update
36
{
37
1
return (new Update($table, $alias))->setEscaper($this->escaper);
38
}
39
40
/**
41
* @param Snippet|string $columnName
42
*/
43
1
public function count($columnName, ?string $alias = null): Snippets\Count
44
{
45
1
return (new Snippets\Count($columnName, $alias));
46
}
47
48
1
public function distinct(string $columnName): Snippets\Distinct
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.