mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-13 00:46:31 +00:00
SSH/Agent: add proper type hinting to constructor
This commit is contained in:
parent
efd5bf281a
commit
0c728ff2bc
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user