Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0d2065

Browse files
committed
fixed CS
1 parent 616e0ac commit e0d2065

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,8 @@ public function add($node)
7474
$this->addNodes($node);
7575
} elseif (is_string($node)) {
7676
$this->addContent($node);
77-
} elseif ($node !== null) {
78-
throw new \InvalidArgumentException(
79-
sprintf(
80-
'Expecting node to be DOMNodeList|DOMNode|array|string|null, but got %s',
81-
(is_object($node)) ? get_class($node) : gettype($node)
82-
)
83-
);
77+
} elseif (null !== $node) {
78+
throw new \InvalidArgumentException(sprintf('Expecting a DOMNodeList or DOMNode instance, an array, a string, or null, but got "%s".', is_object($node) ? get_class($node) : gettype($node)));
8479
}
8580
}
8681

0 commit comments

Comments
 (0)