Skip to content

Commit 9fa7dfe

Browse files
pfuhrmannwasinger
authored andcommitted
1 parent 90d587f commit 9fa7dfe

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"ext-dom":"*",
1818
"ext-libxml":"*",
1919
"symfony/polyfill-mbstring": "~1.0",
20-
"symfony/dom-crawler":"^6",
21-
"symfony/css-selector":"^6"
20+
"symfony/dom-crawler":"^6.0 || ^7.0",
21+
"symfony/css-selector":"^6.0 || ^7.0"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^9",

src/HtmlPageCrawler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ public function filterXPath($xpath): static
921921
*
922922
* @return null|void
923923
*/
924-
public function addContent($content, $type = null)
924+
public function addContent($content, $type = null): void
925925
{
926926
if (empty($type)) {
927927
$type = 'text/html;charset=UTF-8';
@@ -956,11 +956,11 @@ public function addHtmlFragment($content, $charset = 'UTF-8')
956956
*
957957
* Overwritten from parent to allow Crawler to be added
958958
*
959-
* @param null|\DOMNodeList|array|\DOMNode|Crawler $node A node
959+
* @param \DOMNodeList|\DOMNode|array|string|Crawler|null $node A node
960960
*
961961
* @api
962962
*/
963-
public function add($node)
963+
public function add(\DOMNodeList|\DOMNode|array|string|Crawler|null $node): void
964964
{
965965
if ($node instanceof Crawler) {
966966
foreach ($node as $childnode) {

0 commit comments

Comments
 (0)