@@ -162,13 +162,13 @@ public function getAllClassDocComments(ReflectionClass $class): array
162162 $ comments = [];
163163 do {
164164 if (($ comment = $ class ->getDocComment ()) !== false ) {
165- $ comments [$ class ->getName ()] = Convert:: lineEndingsToUnix ($ comment );
165+ $ comments [$ class ->getName ()] = Str:: setEol ($ comment );
166166 }
167167 } while ($ class = $ class ->getParentClass ());
168168
169169 foreach ($ interfaces as $ interface ) {
170170 if (($ comment = $ interface ->getDocComment ()) !== false ) {
171- $ comments [$ interface ->getName ()] = Convert:: lineEndingsToUnix ($ comment );
171+ $ comments [$ interface ->getName ()] = Str:: setEol ($ comment );
172172 }
173173 }
174174
@@ -201,10 +201,10 @@ public function getAllMethodDocComments(ReflectionMethod $method, ?array &$class
201201 if ($ interface ->hasMethod ($ name ) &&
202202 ($ comment = $ interface ->getMethod ($ name )->getDocComment ()) !== false ) {
203203 $ class = $ interface ->getName ();
204- $ comments [$ class ] = Convert:: lineEndingsToUnix ($ comment );
204+ $ comments [$ class ] = Str:: setEol ($ comment );
205205 if (!is_null ($ classDocComments )) {
206206 $ comment = $ interface ->getDocComment () ?: null ;
207- $ classDocComments [$ class ] = $ comment === null ? null : Convert:: lineEndingsToUnix ($ comment );
207+ $ classDocComments [$ class ] = $ comment === null ? null : Str:: setEol ($ comment );
208208 }
209209 }
210210 }
@@ -223,10 +223,10 @@ private function _getAllMethodDocComments(ReflectionMethod $method, string $name
223223 do {
224224 if (($ comment = $ method ->getDocComment ()) !== false ) {
225225 $ class = $ method ->getDeclaringClass ()->getName ();
226- $ comments [$ class ] = Convert:: lineEndingsToUnix ($ comment );
226+ $ comments [$ class ] = Str:: setEol ($ comment );
227227 if (!is_null ($ classDocComments )) {
228228 $ comment = $ method ->getDeclaringClass ()->getDocComment () ?: null ;
229- $ classDocComments [$ class ] = $ comment === null ? null : Convert:: lineEndingsToUnix ($ comment );
229+ $ classDocComments [$ class ] = $ comment === null ? null : Str:: setEol ($ comment );
230230 }
231231 }
232232 // Interfaces don't have traits, so there's nothing else to do here
@@ -293,10 +293,10 @@ private function _getAllPropertyDocComments(
293293 do {
294294 if (($ comment = $ property ->getDocComment ()) !== false ) {
295295 $ class = $ property ->getDeclaringClass ()->getName ();
296- $ comments [$ class ] = Convert:: lineEndingsToUnix ($ comment );
296+ $ comments [$ class ] = Str:: setEol ($ comment );
297297 if (!is_null ($ classDocComments )) {
298298 $ comment = $ property ->getDeclaringClass ()->getDocComment () ?: null ;
299- $ classDocComments [$ class ] = $ comment === null ? null : Convert:: lineEndingsToUnix ($ comment );
299+ $ classDocComments [$ class ] = $ comment === null ? null : Str:: setEol ($ comment );
300300 }
301301 }
302302 foreach ($ property ->getDeclaringClass ()->getTraits () as $ trait ) {
0 commit comments