Skip to content

Commit 13342f7

Browse files
committed
removed psalm-mutation-free tag
1 parent 2fcfbd1 commit 13342f7

File tree

5 files changed

+3
-36
lines changed

5 files changed

+3
-36
lines changed

src/Basic/UnmanagedTransaction.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,16 @@ public function rollback(): void
6868
$this->tsx->rollback();
6969
}
7070

71-
/**
72-
* @psalm-mutation-free
73-
*/
7471
public function isCommitted(): bool
7572
{
7673
return $this->tsx->isCommitted();
7774
}
7875

79-
/**
80-
* @psalm-mutation-free
81-
*/
8276
public function isRolledBack(): bool
8377
{
8478
return $this->tsx->isRolledBack();
8579
}
8680

87-
/**
88-
* @psalm-mutation-free
89-
*/
9081
public function isFinished(): bool
9182
{
9283
return $this->tsx->isRolledBack();

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,25 +191,16 @@ private function handleConnectionTimeoutException(ConnectionTimeoutException $e)
191191
throw $e;
192192
}
193193

194-
/**
195-
* @psalm-mutation-free
196-
*/
197194
public function isRolledBack(): bool
198195
{
199196
return $this->isRolledBack;
200197
}
201198

202-
/**
203-
* @psalm-mutation-free
204-
*/
205199
public function isCommitted(): bool
206200
{
207201
return $this->isCommitted;
208202
}
209203

210-
/**
211-
* @psalm-mutation-free
212-
*/
213204
public function isFinished(): bool
214205
{
215206
return $this->isRolledBack() || $this->isCommitted();

src/Contracts/UnmanagedTransactionInterface.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,16 @@ public function rollback(): void;
4343

4444
/**
4545
* Returns whether the transaction has been rolled back.
46-
*
47-
* @psalm-mutation-free
4846
*/
4947
public function isRolledBack(): bool;
5048

5149
/**
5250
* Returns whether the transaction has been committed.
53-
*
54-
* @psalm-mutation-free
5551
*/
5652
public function isCommitted(): bool;
5753

5854
/**
5955
* Returns whether the transaction is safe to use.
60-
*
61-
* @psalm-mutation-free
6256
*/
6357
public function isFinished(): bool;
6458
}

src/Http/HttpUnmanagedTransaction.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,25 +136,16 @@ public function __destruct()
136136
$this->connection->close();
137137
}
138138

139-
/**
140-
* @psalm-mutation-free
141-
*/
142139
public function isRolledBack(): bool
143140
{
144141
return $this->isRolledBack;
145142
}
146143

147-
/**
148-
* @psalm-mutation-free
149-
*/
150144
public function isCommitted(): bool
151145
{
152146
return $this->isCommitted;
153147
}
154148

155-
/**
156-
* @psalm-mutation-free
157-
*/
158149
public function isFinished(): bool
159150
{
160151
return $this->isRolledBack() || $this->isCommitted();

tests/Integration/TransactionIntegrationTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,16 +344,16 @@ public function testRollbackInvalid(string $alias): void
344344
self::markTestSkipped('Cannot guarantee successful test in cluster');
345345
}
346346

347-
$transaction = $this->getClient()->beginTransaction(null, $alias);
348-
$transaction->rollback();
347+
$tsx = $this->getClient()->beginTransaction(null, $alias);
348+
$tsx->rollback();
349349

350350
self::assertTrue($tsx->isFinished());
351351
self::assertTrue($tsx->isRolledBack());
352352
self::assertFalse($tsx->isCommitted());
353353

354354
$exception = false;
355355
try {
356-
$transaction->rollback();
356+
$tsx->rollback();
357357
} catch (Neo4jException $e) {
358358
$exception = true;
359359
}

0 commit comments

Comments
 (0)