← All changes
|
vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php
+2
-2
3.0.14
→
3.2.90
View file →
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | #[\ReturnTypeWillChange] |
| 55 | 55 | public function current() |
| 56 | 56 | { |
| 57 | 57 | // the logic here avoids redoing the same work in all iterations |
| 58 | - if (null === ($subPathname = $this->subPath)) { | |
| 58 | + if (null === $subPathname = $this->subPath) { | |
| 59 | 59 | $subPathname = $this->subPath = $this->getSubPath(); |
| 60 | 60 | } |
| 61 | 61 | if ('' !== $subPathname) { |
| 62 | 62 | $subPathname .= $this->directorySeparator; |
| @@ -62,9 +62,9 @@ | ||
| 62 | 62 | $subPathname .= $this->directorySeparator; |
| 63 | 63 | } |
| 64 | 64 | $subPathname .= $this->getFilename(); |
| 65 | 65 | $basePath = $this->rootPath; |
| 66 | - if ('/' !== $basePath && !\str_ends_with($basePath, $this->directorySeparator) && !\str_ends_with($basePath, '/')) { | |
| 66 | + if ('/' !== $basePath && !str_ends_with($basePath, $this->directorySeparator) && !str_ends_with($basePath, '/')) { | |
| 67 | 67 | $basePath .= $this->directorySeparator; |
| 68 | 68 | } |
| 69 | 69 | return new SplFileInfo($basePath . $subPathname, $this->subPath, $subPathname); |
| 70 | 70 | } |