DomElement default args and corrected param tags

This commit is contained in:
Ben Mewburn 2019-09-06 07:55:24 +10:00
parent cccf793a5c
commit 81d2712c7a
1 changed files with 4 additions and 4 deletions

View File

@ -1713,12 +1713,12 @@ class DOMElement extends DOMNode {
/**
* Creates a new DOMElement object
* @link https://php.net/manual/en/domelement.construct.php
* @param $name string The tag name of the element. When also passing in namespaceURI, the element name may take a prefix to be associated with the URI.
* @param $value string [optional] The value of the element.
* @param $uri string [optional] A namespace URI to create the element within a specific namespace.
* @param string $name The tag name of the element. When also passing in namespaceURI, the element name may take a prefix to be associated with the URI.
* @param string|null $value [optional] The value of the element.
* @param string|null $uri [optional] A namespace URI to create the element within a specific namespace.
* @since 5.0
*/
public function __construct ($name, $value, $uri) {}
public function __construct ($name, $value = null, $uri = null) {}
/**
* Adds a new child before a reference node