File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ public function testWrap()
375
375
376
376
$ c = new HtmlPageCrawler ('plain text node ' );
377
377
$ c ->wrap ('<div class="ic"></div> ' );
378
- $ this ->assertEquals ('<div class="ic">plain text node</div> ' , $ c ->parents ()->eq (0 )->saveHTML ());
378
+ $ this ->assertEquals ('<div class="ic">plain text node</div> ' , $ c ->ancestors ()->eq (0 )->saveHTML ());
379
379
380
380
$ c = HtmlPageCrawler::create ('<div> ' );
381
381
$ m = HtmlPageCrawler::create ('message 1 ' )->appendTo ($ c );
Original file line number Diff line number Diff line change 17
17
"ext-dom" :" *" ,
18
18
"ext-libxml" :" *" ,
19
19
"ext-mbstring" :" *" ,
20
- "symfony/dom-crawler" :" ^4.4|^5" ,
21
- "symfony/css-selector" :" ^4.4|^5"
20
+ "symfony/dom-crawler" :" ^4.4|^5|^6 " ,
21
+ "symfony/css-selector" :" ^4.4|^5|^6 "
22
22
},
23
23
"require-dev" : {
24
24
"phpunit/phpunit" : " ^9" ,
Original file line number Diff line number Diff line change @@ -891,7 +891,7 @@ public function getDOMDocument()
891
891
* @param string $selector
892
892
* @return HtmlPageCrawler
893
893
*/
894
- public function filter ($ selector )
894
+ public function filter (string $ selector ): static
895
895
{
896
896
return parent ::filter ($ selector );
897
897
}
@@ -905,7 +905,7 @@ public function filter($selector)
905
905
*
906
906
* @api
907
907
*/
908
- public function filterXPath ($ xpath )
908
+ public function filterXPath ($ xpath ): static
909
909
{
910
910
return parent ::filterXPath ($ xpath );
911
911
}
You can’t perform that action at this time.
0 commit comments