Skip to content

Commit 10c3550

Browse files
committed
fixed typings
1 parent a6c420a commit 10c3550

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Basic/Client.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ public function beginTransaction(?iterable $statements = null, ?string $alias =
5757
return new UnmanagedTransaction($this->client->beginTransaction($statements, $alias, $config));
5858
}
5959

60-
/**
61-
* @psalm-mutation-free
62-
*/
6360
public function getDriver(?string $alias): DriverInterface
6461
{
6562
return $this->client->getDriver($alias);

src/Common/DriverSetupManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class DriverSetupManager implements Countable
3636

3737
/** @var array<string, SplPriorityQueue<int, DriverSetup>> */
3838
private array $driverSetups = [];
39+
/** @var array<string, DriverInterface<ResultFormat>> */
3940
private array $drivers = [];
4041
private ?string $default = null;
4142
private FormatterInterface $formatter;
@@ -61,6 +62,7 @@ public function withSetup(DriverSetup $setup, ?string $alias = null, ?int $prior
6162

6263
$setups = $this->driverSetups;
6364

65+
/** @var SplPriorityQueue<int, DriverSetup> */
6466
$setups[$alias] ??= new SplPriorityQueue();
6567
/** @psalm-suppress ImpureMethodCall */
6668
$setups[$alias]->insert($setup, $priority ?? 0);
@@ -83,6 +85,7 @@ public function getDriver(?string $alias = null): DriverInterface
8385
throw new InvalidArgumentException(sprintf('Cannot find a driver setup with alias: "%s"', $alias));
8486
}
8587

88+
/** @var SplPriorityQueue<int, DriverSetup> */
8689
$this->driverSetups['default'] = new SplPriorityQueue();
8790
$setup = new DriverSetup(Uri::create(self::DEFAULT_DRIVER_CONFIG), Authenticate::disabled());
8891
$this->driverSetups['default']->insert($setup, PHP_INT_MIN);

src/Databags/DriverSetup.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
namespace Laudis\Neo4j\Databags;
1515

1616
use Laudis\Neo4j\Contracts\AuthenticateInterface;
17-
use Laudis\Neo4j\Contracts\FormatterInterface;
1817
use Psr\Http\Message\UriInterface;
1918

2019
/**

0 commit comments

Comments
 (0)