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/CssSelector/CssSelector.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
12
12
namespaceSymfony\Component\CssSelector;
13
13
14
-
@trigger_error('The '.__NAMESPACE__.'\CssSelector class is deprecated since version 2.8 and will be removed in 3.0. Use directly the \Symfony\Component\CssSelector\Converter class instead.', E_USER_DEPRECATED);
14
+
@trigger_error('The '.__NAMESPACE__.'\CssSelector class is deprecated since version 2.8 and will be removed in 3.0. Use directly the \Symfony\Component\CssSelector\CssSelectorConverter class instead.', E_USER_DEPRECATED);
15
15
16
16
/**
17
17
* CssSelector is the main entry point of the component and can convert CSS
* Crawler eases navigation of a list of \DOMElement objects.
@@ -41,7 +41,7 @@ class Crawler extends \SplObjectStorage
41
41
private$baseHref;
42
42
43
43
/**
44
-
* Whether the Crawler contains HTML or XML content (used when converting CSS to XPath)
44
+
* Whether the Crawler contains HTML or XML content (used when converting CSS to XPath).
45
45
*
46
46
* @var bool
47
47
*/
@@ -659,11 +659,11 @@ public function filterXPath($xpath)
659
659
*/
660
660
publicfunctionfilter($selector)
661
661
{
662
-
if (!class_exists('Symfony\\Component\\CssSelector\\Converter')) {
662
+
if (!class_exists('Symfony\\Component\\CssSelector\\CssSelectorConverter')) {
663
663
thrownew \RuntimeException('Unable to filter with a CSS selector as the Symfony CssSelector 2.8+ is not installed (you can use filterXPath instead).');
0 commit comments