Remove all calls to ReflectionProperty::setAccessible

This commit is contained in:
Alejandro Celaya
2025-10-28 11:03:41 +01:00
parent fc54a25c32
commit 532700028a
4 changed files with 0 additions and 4 deletions

View File

@@ -85,7 +85,6 @@ class ShortUrlListRepositoryTest extends DatabaseTestCase
$foo2->setVisits(new ArrayCollection($visits2));
$ref = new ReflectionObject($foo2);
$dateProp = $ref->getProperty('dateCreated');
$dateProp->setAccessible(true);
$dateProp->setValue($foo2, Chronos::now()->subDays(5));
$this->getEntityManager()->persist($foo2);