Some PHP 8.4 deprecration fixes regarding NULL assignment to cast values on class instantiation

This commit is contained in:
2025-03-15 16:04:40 +11:00
parent 4a84c25ac7
commit f667250b2c
4 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ final class SMD5 extends Base
return $source === $this->encode($compare,$this->salted_salt($source));
}
public function encode(string $password,string $salt=NULL): string
public function encode(string $password,?string $salt=NULL): string
{
if (is_null($salt))
$salt = hex2bin(random_salt(self::salt));