8000 Merge branch '2.4' · symfony/symfony@58bdf84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58bdf84

Browse files
committed
Merge branch '2.4'
* 2.4: [DomCrawler] fixed wrong merge [Filesystem] fixed a test broken after merging the 2.3 branch
2 parents 3baa43b + 5808287 commit 58bdf84

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,7 @@ public function addXmlContent($content, $charset = 'UTF-8')
224224
$dom->validateOnParse = true;
225225

226226
if ('' !== trim($content)) {
227-
// remove the default namespace to make XPath expressions simpler
228-
@$dom->loadXML(str_replace('xmlns', 'ns', $content), LIBXML_NONET);
227+
@$dom->loadXML($content, LIBXML_NONET);
229228
}
230229

231230
libxml_use_internal_errors($internalErrors);

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ public function testDumpFileWithNullMode()
890890

891891
// skip mode check on Windows
892892
if (!defined('PHP_WINDOWS_VERSION_MAJOR')) {
893-
$this->assertEquals(600, $this->getFilePermissions($filename));
893+
$this->assertFilePermissions(600, $filename);
894894
}
895895
}
896896

0 commit comments

Comments
 (0)
0