File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,11 @@ class SshProcessConnector implements ConnectorInterface
38
38
* @param ?LoopInterface $loop
39
39
* @throws \InvalidArgumentException
40
40
*/
41
- public function __construct ($ uri , LoopInterface $ loop = null )
42
- {
41
+ public function __construct (
42
+ #[\SensitiveParameter]
43
+ $ uri ,
44
+ LoopInterface $ loop = null
45
+ ) {
43
46
// URI must use optional ssh:// scheme, must contain host and neither pass nor target must start with dash
44
47
$ parts = \parse_url ((\strpos ($ uri , ':// ' ) === false ? 'ssh:// ' : '' ) . $ uri );
45
48
$ pass = isset ($ parts ['pass ' ]) ? \rawurldecode ($ parts ['pass ' ]) : null ;
Original file line number Diff line number Diff line change @@ -49,8 +49,11 @@ class SshSocksConnector implements ConnectorInterface
49
49
* @param ?LoopInterface $loop
50
50
* @throws \InvalidArgumentException
51
51
*/
52
- public function __construct ($ uri , LoopInterface $ loop = null )
53
- {
52
+ public function __construct (
53
+ #[\SensitiveParameter]
54
+ $ uri ,
55
+ LoopInterface $ loop = null
56
+ ) {
54
57
// URI must use optional ssh:// scheme, must contain host and neither pass nor target must start with dash
55
58
$ parts = \parse_url ((\strpos ($ uri , ':// ' ) === false ? 'ssh:// ' : '' ) . $ uri );
56
59
$ pass = isset ($ parts ['pass ' ]) ? \rawurldecode ($ parts ['pass ' ]) : null ;
You can’t perform that action at this time.
0 commit comments