Skip to content

Commit 69e457c

Browse files
#10 replace uniqid with bin2hex(random_bytes(4)) (like Symfony does)
1 parent afaa94e commit 69e457c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Task/EntityManager/AbstractDoctrineQueryTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function getQueryBuilder(
6868
if (preg_match('/[^a-zA-Z0-9]/', $field)) {
6969
throw new \UnexpectedValueException("Forbidden field name '{$field}'");
7070
}
71-
$parameterName = uniqid('param', true);
71+
$parameterName = 'param_' . bin2hex(random_bytes(4));
7272
if (null === $value) {
7373
$qb->andWhere("e.{$field} IS null");
7474
} else {

0 commit comments

Comments
 (0)