You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/DomCrawler/Crawler.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1036,6 +1036,8 @@ private function relativize($xpath)
1036
1036
1037
1037
// BC for Symfony 2.4 and lower were elements were adding in a fake _root parent
1038
1038
if (0 === strpos($expression, '/_root/')) {
1039
+
@trigger_error('XPath expressions referencing the fake root node are deprecated since version 2.8 and will be unsupported in 3.0. Please use "./" instead of "/_root/".', E_USER_DEPRECATED);
0 commit comments