SSH/Agent: add proper type hinting to constructor

This commit is contained in:
terrafrost 2022-11-29 06:31:29 -06:00
parent efd5bf281a
commit 0c728ff2bc
1 changed files with 1 additions and 1 deletions

View File

@ -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) {