X509: fix another PHP 8.4 deprecation

This commit is contained in:
terrafrost 2024-11-28 19:38:13 -06:00
parent e432117c2b
commit 6dcb3bbca6

View File

@ -1815,7 +1815,7 @@ class X509
* @param array $dn optional
* @return array|bool|string
*/
public function getDN($format = self::DN_ARRAY, array $dn = null)
public function getDN($format = self::DN_ARRAY, $dn = null)
{
if (!isset($dn)) {
$dn = isset($this->currentCert['tbsCertList']) ? $this->currentCert['tbsCertList']['issuer'] : $this->dn;