Skip to content

Commit c6f7814

Browse files
committed
minor #18021 Don't use reflections when possible (Ener-Getick)
This PR was merged into the 2.3 branch. Discussion ---------- Don't use reflections when possible | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Use php functions instead of reflection when possible (to improve a bit the performance). Commits ------- a46270a Don't use reflections when possible
2 parents d8189a6 + 6cfed88 commit c6f7814

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tests/Normalizer/GetSetMethodNormalizerTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@ public function otherMethod()
298298
{
299299
throw new \RuntimeException('Dummy::otherMethod() should not be called');
300300
}
301+
302+
protected function getPrivate()
303+
{
304+
throw new \RuntimeException('Dummy::getPrivate() should not be called');
305+
}
301306
}
302307

303308
class GetConstructorDummy

0 commit comments

Comments
 (0)