8000 bug #25606 Updating message to inform the user how to install the com… · symfony/symfony@02524ee · GitHub
[go: up one dir, main page]

Skip to content

Commit 02524ee

Browse files
bug #25606 Updating message to inform the user how to install the component (weaverryan)
This PR was submitted for the 4.0 branch but it was squashed and merged into the 3.4 branch instead (closes #25606). Discussion ---------- Updating message to inform the user how to install the component | Q | A | ------------- | --- | Branch? | 4.0 | Bug fix? | yes-ish | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | n/a Simple: direct the user exactly what to do if they hit this :) Commits ------- 07ac535 Updating message to inform the user how to install the component
2 parents cd6690d + 07ac535 commit 02524ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,8 +691,8 @@ public function filterXPath($xpath)
691691
*/
692692
public function filter($selector)
693693
{
694-
if (!class_exists('Symfony\\Component\\CssSelector\\CssSelectorConverter')) {
695-
throw new \RuntimeException('Unable to filter with a CSS selector as the Symfony CssSelector 2.8+ is not installed (you can use filterXPath instead).');
694+
if (!class_exists(CssSelectorConverter::class)) {
695+
throw new \RuntimeException('To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead.');
696696
}
697697

698698
$converter = new CssSelectorConverter($this->isHtml);

0 commit comments

Comments
 (0)
0