mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Remove all calls to ReflectionProperty::setAccessible
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user