@@ -41,9 +41,6 @@ public function __construct(
4141 private readonly ?Neo4jLogger $ logger
4242 ) {}
4343
44- /**
45- * @psalm-mutation-free
46- */
4744 public function authenticateHttp (RequestInterface $ request , UriInterface $ uri , string $ userAgent ): RequestInterface
4845 {
4946 $ this ->logger ?->log(LogLevel::DEBUG , 'Authentication disabled ' );
@@ -63,10 +60,10 @@ public function authenticateHttp(RequestInterface $request, UriInterface $uri, s
6360 public function authenticateBolt (V4_4 |V5 |V5_1 |V5_2 |V5_3 |V5_4 $ protocol , string $ userAgent ): array
6461 {
6562 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 ]);
6764 $ protocol ->hello (['user_agent ' => $ userAgent ]);
6865 $ response = ResponseHelper::getResponse ($ protocol );
69- $ this ->logger ->log (LogLevel::DEBUG , 'LOGON ' , ['scheme ' => 'none ' ]);
66+ $ this ->logger ? ->log(LogLevel::DEBUG , 'LOGON ' , ['scheme ' => 'none ' ]);
7067 $ protocol ->logon ([
7168 'scheme ' => 'none ' ,
7269 ]);
@@ -75,7 +72,7 @@ public function authenticateBolt(V4_4|V5|V5_1|V5_2|V5_3|V5_4 $protocol, string $
7572 /** @var array{server: string, connection_id: string, hints: list} */
7673 return $ response ->content ;
7774 } 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 ' ]);
7976 $ protocol ->hello ([
8077 'user_agent ' => $ userAgent ,
8178 'scheme ' => 'none ' ,
0 commit comments