Skip to content

Commit 5ca3108

Browse files
committed
Improve comments.
1 parent 226dd74 commit 5ca3108

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/EnvMapper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ private function typeNormalize(string $val, \ReflectionProperty $rProp): int|flo
9999
/**
100100
* This is actually rather slow. Reflection's performance cost hurts here.
101101
*
102+
* We only care about defaults from the constructor; if a non-readonly property
103+
* has a default value, then newInstanceWithoutConstructor() will use it for us
104+
* and we don't need to do anything.
105+
*
102106
* @param \ReflectionProperty $subject
103107
* @return mixed
104108
*/

0 commit comments

Comments
 (0)