Skip to content

Commit fff4b0c

Browse files
committed
Merge branch '2.3' into 2.7
Conflicts: src/Symfony/Bundle/FrameworkBundle/Templating/TemplateFilenameParser.php
2 parents 72a98b8 + 87a0f52 commit fff4b0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Iterator/ExcludeDirectoryFilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(\Iterator $iterator, array $directories)
4343
public function accept()
4444
{
4545
$path = $this->isDir() ? $this->current()->getRelativePathname() : $this->current()->getRelativePath();
46-
$path = strtr($path, '\\', '/');
46+
$path = str_replace('\\', '/', $path);
4747
foreach ($this->patterns as $pattern) {
4848
if (preg_match($pattern, $path)) {
4949
return false;

Iterator/PathFilterIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function accept()
2929
$filename = $this->current()->getRelativePathname();
3030

3131
if ('\\' === DIRECTORY_SEPARATOR) {
32-
$filename = strtr($filename, '\\', '/');
32+
$filename = str_replace('\\', '/', $filename);
3333
}
3434

3535
// should at least not match one rule to exclude

0 commit comments

Comments
 (0)