Skip to content

Commit d8acf7f

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: fixed CS fixed CS fixed CS Do not log or call the proxy function when the locale is the same Added missing required dependencies on psr/cache and psr/container in symfony/cache-contracts and symfony/service-contracts respectively. [HttpClient] fix closing debug stream prematurely [Mailer] made code more robust Restore compatibility with php 5.5 fixed sender/recipients in SMTP Envelope collect called listeners information only once [HttpKernel] Remove TestEventDispatcher.
2 parents 2a98f26 + 2913972 commit d8acf7f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Crawler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public function text(/* $default = null */)
566566
{
567567
if (!$this->nodes) {
568568
if (0 < \func_num_args()) {
569-
return \func_get_arg(0);
569+
return func_get_arg(0);
570570
}
571571

572572
throw new \InvalidArgumentException('The current node list is empty.');
@@ -588,7 +588,7 @@ public function html(/* $default = null */)
588588
{
589589
if (!$this->nodes) {
590590
if (0 < \func_num_args()) {
591-
return \func_get_arg(0);
591+
return func_get_arg(0);
592592
}
593593

594594
throw new \InvalidArgumentException('The current node list is empty.');
@@ -1220,7 +1220,7 @@ private function createSubCrawler($nodes)
12201220
*/
12211221
private function createCssSelectorConverter(): CssSelectorConverter
12221222
{
1223-
if (!\class_exists(CssSelectorConverter::class)) {
1223+
if (!class_exists(CssSelectorConverter::class)) {
12241224
throw new \LogicException('To filter with a CSS selector, install the CssSelector component ("composer require symfony/css-selector"). Or use filterXpath instead.');
12251225
}
12261226

Test/Constraint/CrawlerSelectorTextContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function matches($crawler): bool
4545
return false;
4646
}
4747

48-
return false !== \mb_strpos($crawler->text(), $this->expectedText);
48+
return false !== mb_strpos($crawler->text(), $this->expectedText);
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)