Open
Description
mysqli requires some crazy gymnastics to support IN statements with an arbitrary number of elements.
we should figure out whether this can somehow be protected/covered by phpstan-dba
from the php.net docs
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'world');
// XXX numer of "?" depends on number of elements passed into "bind_param"
$stmt = $mysqli->prepare("SELECT Language FROM CountryLanguage WHERE CountryCode IN (?, ?)");
/* Using ... to provide arguments */
$stmt->bind_param('ss', ...['DEU', 'POL']);
$stmt->execute();
$stmt->store_result();
printf("%d rows found.\n", $stmt->num_rows());