-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
bugSomething isn't workingSomething isn't working
Description
refs https://github.com/composer/packagist/pull/1232/files#
/**
* @param string[] $packageNames
*/
public function searchSecurityAdvisories(array $packageNames, int $updatedSince): array
{
$sql = 'SELECT s.packagistAdvisoryId as advisoryId, s.packageName, s.remoteId, s.title, s.link, s.cve, s.affectedVersions, s.source, s.reportedAt, s.composerRepository
FROM security_advisory s
WHERE s.updatedAt >= :updatedSince ' .
(count($packageNames) > 0 ? ' AND s.packageName IN (:packageNames)' : '')
.' ORDER BY s.id DESC';
return $this->getEntityManager()->getConnection()
->fetchAllAssociative(
$sql,
[
'packageNames' => $packageNames,
'updatedSince' => date('Y-m-d H:i:s', $updatedSince),
],
['packageNames' => Connection::PARAM_STR_ARRAY]
);
}leads to
Query expects 1 placeholder, but 2 values are given.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working