mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 19:13:49 +00:00
fix rector issues
This commit is contained in:
@@ -84,7 +84,7 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
|
||||
|
||||
/** @var Address $address */
|
||||
$address = $em->createQuery('SELECT a FROM '.Address::class.' a')
|
||||
->setFirstResult(rand(0, $nb))
|
||||
->setFirstResult(random_int(0, $nb))
|
||||
->setMaxResults(1)
|
||||
->getSingleResult();
|
||||
|
||||
@@ -108,7 +108,7 @@ class AddressToReferenceMatcherControllerTest extends WebTestCase
|
||||
|
||||
$ref = $em->createQuery('SELECT a FROM '.AddressReference::class.' a')
|
||||
->setMaxResults(1)
|
||||
->setFirstResult(rand(0, $nb))
|
||||
->setFirstResult(random_int(0, $nb))
|
||||
->getSingleResult();
|
||||
|
||||
$address = Address::createFromAddressReference($ref);
|
||||
|
Reference in New Issue
Block a user