From 0c728ff2bc8139a22f0bfecf899b555fcc000744 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 29 Nov 2022 06:31:29 -0600 Subject: [PATCH] SSH/Agent: add proper type hinting to constructor --- phpseclib/System/SSH/Agent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/System/SSH/Agent.php b/phpseclib/System/SSH/Agent.php index 26414bc9..d74a9da0 100644 --- a/phpseclib/System/SSH/Agent.php +++ b/phpseclib/System/SSH/Agent.php @@ -116,7 +116,7 @@ class Agent * @throws BadConfigurationException if SSH_AUTH_SOCK cannot be found * @throws RuntimeException on connection errors */ - public function __construct($address = null) + public function __construct(?string $address = null) { if (!$address) { switch (true) {