Skip to content

Commit 03d771b

Browse files
committed
chore: Fix Psalm warnings
1 parent d2ce89f commit 03d771b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ networks:
33

44
services:
55
app:
6-
user: ${UID-1000}:${GID-1000}
6+
user: root:${UID-1000}:${GID-1000}
77
build:
88
context: .
99
ports:

src/ClientFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ public function create(): SymfonyClient
5656
/** @var ClientBuilder<SummarizedResult<CypherMap>> $builder */
5757
$builder = ClientBuilder::create();
5858

59-
if ($this->driverConfig) {
59+
if (null !== $this->driverConfig) {
6060
$builder = $builder->withDefaultDriverConfiguration($this->makeDriverConfig());
6161
}
6262

63-
if ($this->sessionConfiguration) {
63+
if (null !== $this->sessionConfiguration) {
6464
$builder = $builder->withDefaultSessionConfiguration($this->makeSessionConfig());
6565
}
6666

67-
if ($this->transactionConfiguration) {
67+
if (null !== $this->transactionConfiguration) {
6868
$builder = $builder->withDefaultTransactionConfiguration($this->makeTransactionConfig());
6969
}
7070

@@ -77,7 +77,7 @@ public function create(): SymfonyClient
7777
);
7878
}
7979

80-
if ($this->defaultDriver) {
80+
if (null !== $this->defaultDriver) {
8181
$builder = $builder->withDefaultDriver($this->defaultDriver);
8282
}
8383

src/Collector/Neo4jDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private function recursiveToArray(mixed $obj): mixed
134134
{
135135
if (is_array($obj)) {
136136
return array_map(
137-
fn (mixed $x) => $this->recursiveToArray($x),
137+
fn (mixed $x): mixed => $this->recursiveToArray($x),
138138
$obj
139139
);
140140
}

tests/Functional/ProfilerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected static function getKernelClass(): string
1313
return TestKernel::class;
1414
}
1515

16-
public function testProfiler()
16+
public function testProfiler(): void
1717
{
1818
$client = static::createClient();
1919
$client->enableProfiler();

0 commit comments

Comments
 (0)