From 7b083cf00f17accd7c61b7a9008e84f76469536e Mon Sep 17 00:00:00 2001 From: Fabio Spadea Date: Thu, 5 Dec 2024 18:15:17 +0100 Subject: [PATCH] remove implicitly nullable via default value null --- hamcrest/Hamcrest/Xml/HasXPath.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hamcrest/Hamcrest/Xml/HasXPath.php b/hamcrest/Hamcrest/Xml/HasXPath.php index d9764e45f..bedf9694a 100644 --- a/hamcrest/Hamcrest/Xml/HasXPath.php +++ b/hamcrest/Hamcrest/Xml/HasXPath.php @@ -32,7 +32,7 @@ class HasXPath extends DiagnosingMatcher */ private $_matcher; - public function __construct($xpath, Matcher $matcher = null) + public function __construct($xpath, ?Matcher $matcher = null) { $this->_xpath = $xpath; $this->_matcher = $matcher;