Commit daac8f8
gen_stub: stop cloning
The objects are immutable, and thus can be safely reused when held by an object
that gets cloned. Remove the unneeded cloning, and document this fact about the
class, noting that the property should be considered `readonly`.
Not actually using `readonly` to maintain PHP 7.4 support.ExposedDocComment objects1 parent 418b933 commit daac8f8
1 file changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2099 | 2099 | | |
2100 | 2100 | | |
2101 | 2101 | | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | 2102 | | |
2106 | 2103 | | |
2107 | 2104 | | |
| |||
3146 | 3143 | | |
3147 | 3144 | | |
3148 | 3145 | | |
3149 | | - | |
3150 | | - | |
3151 | | - | |
3152 | 3146 | | |
3153 | 3147 | | |
3154 | 3148 | | |
| |||
4011 | 4005 | | |
4012 | 4006 | | |
4013 | 4007 | | |
4014 | | - | |
4015 | | - | |
4016 | | - | |
4017 | | - | |
4018 | 4008 | | |
4019 | 4009 | | |
4020 | 4010 | | |
| |||
4190 | 4180 | | |
4191 | 4181 | | |
4192 | 4182 | | |
| 4183 | + | |
| 4184 | + | |
4193 | 4185 | | |
4194 | | - | |
| 4186 | + | |
4195 | 4187 | | |
4196 | 4188 | | |
4197 | 4189 | | |
| |||
0 commit comments