Skip to content

Commit 4c691bf

Browse files
committed
remove setAccessible from StubTrait
1 parent d94328b commit 4c691bf

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Core/src/Testing/StubTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ trait StubTrait
3535
public function ___getProperty($prop)
3636
{
3737
$property = $this->___getPropertyReflector($prop);
38-
39-
$property->setAccessible(true);
4038
return $property->getValue($this);
4139
}
4240

@@ -54,8 +52,6 @@ public function ___setProperty($prop, $value)
5452
}
5553

5654
$property = $this->___getPropertyReflector($prop);
57-
58-
$property->setAccessible(true);
5955
$property->setValue($this, $value);
6056
}
6157

0 commit comments

Comments
 (0)