diff --git a/AbstractUriElement.php b/AbstractUriElement.php index c0b76ca..9a3712b 100644 --- a/AbstractUriElement.php +++ b/AbstractUriElement.php @@ -18,20 +18,9 @@ */ abstract class AbstractUriElement { - /** - * @var \DOMElement - */ - protected $node; - - /** - * @var string|null The method to use for the element - */ - protected $method; - - /** - * @var string The URI of the page where the element is embedded (or the base href) - */ - protected $currentUri; + protected \DOMElement $node; + protected ?string $method; + protected ?string $currentUri; /** * @param \DOMElement $node A \DOMElement instance diff --git a/Crawler.php b/Crawler.php index 15773f4..be56712 100644 --- a/Crawler.php +++ b/Crawler.php @@ -23,10 +23,7 @@ */ class Crawler implements \Countable, \IteratorAggregate { - /** - * @var string|null - */ - protected $uri; + protected ?string $uri; /** * The default namespace prefix to be used with XPath and CSS expressions. diff --git a/Field/FormField.php b/Field/FormField.php index 54fe3bb..f364d52 100644 --- a/Field/FormField.php +++ b/Field/FormField.php @@ -18,30 +18,12 @@ */ abstract class FormField { - /** - * @var \DOMElement - */ - protected $node; - /** - * @var string - */ - protected $name; - /** - * @var string - */ - protected $value; - /** - * @var \DOMDocument - */ - protected $document; - /** - * @var \DOMXPath - */ - protected $xpath; - /** - * @var bool - */ - protected $disabled; + protected \DOMElement $node; + protected string $name; + protected string|array|null $value = null; + protected \DOMDocument $document; + protected \DOMXPath $xpath; + protected bool $disabled = false; /** * @param \DOMElement $node The node associated with this field