File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 16
16
use Exception ;
17
17
use function is_string ;
18
18
use Laudis \Neo4j \Authentication \Authenticate ;
19
+ use Laudis \Neo4j \Common \GeneratorHelper ;
19
20
use Laudis \Neo4j \Common \Uri ;
20
21
use Laudis \Neo4j \Contracts \AuthenticateInterface ;
21
22
use Laudis \Neo4j \Contracts \DriverInterface ;
@@ -106,7 +107,7 @@ public function createSession(?SessionConfiguration $config = null): SessionInte
106
107
public function verifyConnectivity (): bool
107
108
{
108
109
try {
109
- $ this ->pool ->acquire (SessionConfiguration::default ());
110
+ GeneratorHelper:: getReturnFromGenerator ( $ this ->pool ->acquire (SessionConfiguration::default () ));
110
111
} catch (Throwable $ e ) {
111
112
return false ;
112
113
}
Original file line number Diff line number Diff line change 34
34
*
35
35
* @implements DriverInterface<T>
36
36
*
37
- * @psalm-import-type OGMResults from \Laudis\Neo4j\Formatter\ OGMFormatter
37
+ * @psalm-import-type OGMResults from OGMFormatter
38
38
*/
39
39
final class HttpDriver implements DriverInterface
40
40
{
Original file line number Diff line number Diff line change 17
17
use function is_string ;
18
18
use Laudis \Neo4j \Authentication \Authenticate ;
19
19
use Laudis \Neo4j \Bolt \Session ;
20
+ use Laudis \Neo4j \Common \GeneratorHelper ;
20
21
use Laudis \Neo4j \Common \Uri ;
21
22
use Laudis \Neo4j \Contracts \AuthenticateInterface ;
22
23
use Laudis \Neo4j \Contracts \DriverInterface ;
@@ -105,7 +106,7 @@ public function createSession(?SessionConfiguration $config = null): SessionInte
105
106
public function verifyConnectivity (): bool
106
107
{
107
108
try {
108
- $ this ->pool ->acquire (SessionConfiguration::default ());
109
+ GeneratorHelper:: getReturnFromGenerator ( $ this ->pool ->acquire (SessionConfiguration::default () ));
109
110
} catch (Throwable $ e ) {
110
111
return false ;
111
112
}
You can’t perform that action at this time.
0 commit comments