Symfony\Component\DomCrawler\Crawler::add
Adds a node to the current list of nodes.
This method uses the appropriate specialized add*() method based on the type of the argument.
Signature
public function add(DOMNode|array|string|null
$node )
Parameters
$node
— object- A node
Errors/Exceptions
-
InvalidArgumentException
- When node is not the expected type.