Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02524ee

Browse filesBrowse files
bug symfony#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 symfony#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
Copy full SHA for 02524ee

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎src/Symfony/Component/DomCrawler/Crawler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/DomCrawler/Crawler.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.