mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-26 20:41:41 +00:00
Removed useless setAccessible() calls
They are noop since 8.1 and we only support 8.2+
This commit is contained in:
parent
5e18ae2874
commit
9d4dabbd20
5 changed files with 2 additions and 18 deletions
|
|
@ -158,7 +158,6 @@ class DBElementRepository extends EntityRepository
|
|||
{
|
||||
$reflection = new ReflectionClass($element::class);
|
||||
$property = $reflection->getProperty($field);
|
||||
$property->setAccessible(true);
|
||||
$property->setValue($element, $new_value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -233,7 +233,6 @@ trait PKImportHelperTrait
|
|||
|
||||
$reflectionClass = new \ReflectionClass($entity);
|
||||
$property = $reflectionClass->getProperty('addedDate');
|
||||
$property->setAccessible(true);
|
||||
$property->setValue($entity, $date);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue