Merge pull request #6904 from JediKev/rebase/pull-6872

Reviewed-By: JediKev <kevin@enhancesoft.com>
This commit is contained in:
JediKev
2026-01-15 09:53:41 -06:00
committed by GitHub
7 changed files with 8 additions and 8 deletions

View File

@@ -254,7 +254,7 @@ class Net_DNS2
* @access public
*
*/
public function __construct(array $options = null)
public function __construct(?array $options = null)
{
//
// check for the sockets extension

View File

@@ -80,8 +80,8 @@ class Net_DNS2_Exception extends Exception
$message = '',
$code = 0,
$previous = null,
Net_DNS2_Packet_Request $request = null,
Net_DNS2_Packet_Response $response = null
?Net_DNS2_Packet_Request $request = null,
?Net_DNS2_Packet_Response $response = null
) {
//
// store the request/response objects (if passed)

View File

@@ -178,7 +178,7 @@ abstract class Net_DNS2_RR
* @access public
*
*/
public function __construct(Net_DNS2_Packet &$packet = null, array $rr = null)
public function __construct(?Net_DNS2_Packet &$packet = null, ?array $rr = null)
{
if ( (!is_null($packet)) && (!is_null($rr)) ) {

View File

@@ -132,7 +132,7 @@ class Net_DNS2_RR_CERT extends Net_DNS2_RR
* @return
*
*/
public function __construct(Net_DNS2_Packet &$packet = null, array $rr = null)
public function __construct(?Net_DNS2_Packet &$packet = null, ?array $rr = null)
{
parent::__construct($packet, $rr);

View File

@@ -120,7 +120,7 @@ class Net_DNS2_RR_OPT extends Net_DNS2_RR
* @access public
*
*/
public function __construct(Net_DNS2_Packet &$packet = null, array $rr = null)
public function __construct(?Net_DNS2_Packet &$packet = null, ?array $rr = null)
{
//
// this is for when we're manually building an OPT RR object; we aren't

View File

@@ -70,7 +70,7 @@ class Net_DNS2_Resolver extends Net_DNS2
* @access public
*
*/
public function __construct(array $options = null)
public function __construct(?array $options = null)
{
parent::__construct($options);
}

View File

@@ -87,7 +87,7 @@ class Net_DNS2_Updater extends Net_DNS2
* @access public
*
*/
public function __construct($zone, array $options = null)
public function __construct($zone, ?array $options = null)
{
parent::__construct($options);