@@ -41,9 +41,6 @@ public function __construct(
41
41
private readonly ?Neo4jLogger $ logger
42
42
) {}
43
43
44
- /**
45
- * @psalm-mutation-free
46
- */
47
44
public function authenticateHttp (RequestInterface $ request , UriInterface $ uri , string $ userAgent ): RequestInterface
48
45
{
49
46
$ this ->logger ?->log(LogLevel::DEBUG , 'Authentication disabled ' );
@@ -63,10 +60,10 @@ public function authenticateHttp(RequestInterface $request, UriInterface $uri, s
63
60
public function authenticateBolt (V4_4 |V5 |V5_1 |V5_2 |V5_3 |V5_4 $ protocol , string $ userAgent ): array
64
61
{
65
62
if (method_exists ($ protocol , 'logon ' )) {
66
- $ this ->logger ->log (LogLevel::DEBUG , 'HELLO ' , ['user_agent ' => $ userAgent ]);
63
+ $ this ->logger ? ->log(LogLevel::DEBUG , 'HELLO ' , ['user_agent ' => $ userAgent ]);
67
64
$ protocol ->hello (['user_agent ' => $ userAgent ]);
68
65
$ response = ResponseHelper::getResponse ($ protocol );
69
- $ this ->logger ->log (LogLevel::DEBUG , 'LOGON ' , ['scheme ' => 'none ' ]);
66
+ $ this ->logger ? ->log(LogLevel::DEBUG , 'LOGON ' , ['scheme ' => 'none ' ]);
70
67
$ protocol ->logon ([
71
68
'scheme ' => 'none ' ,
72
69
]);
@@ -75,7 +72,7 @@ public function authenticateBolt(V4_4|V5|V5_1|V5_2|V5_3|V5_4 $protocol, string $
75
72
/** @var array{server: string, connection_id: string, hints: list} */
76
73
return $ response ->content ;
77
74
} else {
78
- $ this ->logger ->log (LogLevel::DEBUG , 'HELLO ' , ['user_agent ' => $ userAgent , 'scheme ' => 'none ' ]);
75
+ $ this ->logger ? ->log(LogLevel::DEBUG , 'HELLO ' , ['user_agent ' => $ userAgent , 'scheme ' => 'none ' ]);
79
76
$ protocol ->hello ([
80
77
'user_agent ' => $ userAgent ,
81
78
'scheme ' => 'none ' ,
0 commit comments