Skip to content

Commit 6c7d4c1

Browse files
committed
chore: rename Driver::cleanCache to clearCache
1 parent cad1ce4 commit 6c7d4c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Driver/Driver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function withoutCache(): static
111111
return $driver;
112112
}
113113

114-
public function cleanCache(): void
114+
public function clearCache(): void
115115
{
116116
$this->queryCache = [];
117117
}
@@ -138,7 +138,7 @@ public function getTimezone(): \DateTimeZone
138138
public function getSchemaHandler(): HandlerInterface
139139
{
140140
// do not allow to carry prepared statements between schema changes
141-
$this->cleanCache();
141+
$this->clearCache();
142142

143143
return $this->schemaHandler;
144144
}
@@ -177,7 +177,7 @@ public function isConnected(): bool
177177
public function disconnect(): void
178178
{
179179
try {
180-
$this->cleanCache();
180+
$this->clearCache();
181181
$this->pdo = null;
182182
} catch (\Throwable $e) {
183183
// disconnect error

tests/Database/Functional/Driver/Common/Driver/DriverTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ public function datetimeDataProvider(): \Traversable
6363
yield [new class('2000-01-23T01:23:45.678+09:00') extends \DateTime {}];
6464
}
6565

66-
public function testCleanCache(): void
66+
public function testClearCache(): void
6767
{
6868
$driver = $this->mockDriver();
6969

7070
$driver->testPolluteCache();
7171
self::assertNotEmpty($driver->testGetCache());
7272

73-
$driver->cleanCache();
73+
$driver->clearCache();
7474

7575
self::assertEmpty($driver->testGetCache());
7676
}

0 commit comments

Comments
 (0)