diff --git a/psalm-baseline.xml b/psalm-baseline.xml index d229bf89..02b46e67 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,2 +1,181 @@ - + + + + $pass + + + + + enableSsl($uri->getHost(), $sslConfig, $config)]]]> + [$sslConfig, []] + + + + + + + + semaphore]]> + semaphore]]> + sem_get(hexdec($key), $max) + + + + + DatabaseInfo + + + + + Plan + + + + + ProfiledPlan + + + + + ResultSummary + + + + + ServerInfo + + + + + Statement + + + + + SummaryCounters + + + + + $meta + + + + + $coordinates + + + + + $value + $value + + + translateCypherList($value, $meta)]]> + [new CypherList($tbr), $meta] + + + array{0: OGMTypes, 1: HttpMetaInfo} + + + $milliseconds + $milliseconds + $secondsFraction + $time + $time + $timezone + $tzMinutes + + + + + $response + + + + + + + + array{x: float, y: float, z: float, srid: int, crs: Crs} + + + + + keyCache]]> + keyCache]]> + + + + + AbstractPoint + + + + + ]]> + + + + + ]]> + + + + + $connection + new Packer() + new Unpacker() + + + new V5(new Packer(), new Unpacker(), $connection, new ServerState()) + + + + + $item + + + ++$counter; + self::assertEquals(0, $counter); + + + + $counter + $key + + + + + IteratorAggregate + + + $item + + + ++$counter; + self::assertEquals(0, $counter); + 'x'][$key], $item);]]> + + + $counter + $key + + + + + resolver->getAddresses('8.8.8.8')]]> + resolver->getAddresses('bogus')]]> + resolver->getAddresses('test.ghlen.com')]]> + + + $records + + + + + Iterator + + + diff --git a/src/ClientBuilder.php b/src/ClientBuilder.php index 4b31986c..f6c91caf 100644 --- a/src/ClientBuilder.php +++ b/src/ClientBuilder.php @@ -48,8 +48,6 @@ final class ClientBuilder * @param DriverSetupManager $driverSetups */ public function __construct( - /** @psalm-readonly */ - private DriverConfiguration $defaultDriverConfig, /** @psalm-readonly */ private SessionConfiguration $defaultSessionConfig, /** @psalm-readonly */ @@ -67,7 +65,6 @@ public function __construct( public static function create(): ClientBuilder { return new self( - DriverConfiguration::default(), SessionConfiguration::default(), TransactionConfiguration::default(), new DriverSetupManager(SummarizedResultFormatter::create(), DriverConfiguration::default()) @@ -134,7 +131,6 @@ public function withDefaultDriver(string $alias): self public function withFormatter(FormatterInterface $formatter): self { return new self( - $this->defaultDriverConfig, $this->defaultSessionConfig, $this->defaultTransactionConfig, $this->driverSetups->withFormatter($formatter) diff --git a/src/Common/DriverSetupManager.php b/src/Common/DriverSetupManager.php index 838a1f7f..e01e204d 100644 --- a/src/Common/DriverSetupManager.php +++ b/src/Common/DriverSetupManager.php @@ -62,6 +62,9 @@ public function getDriverConfiguration(): DriverConfiguration return $this->configuration; } + /** + * @psalm-mutation-free + */ public function withDriverConfiguration(DriverConfiguration $config): self { $tbr = clone $this;