Skip to content

Commit 428be5e

Browse files
abnegateclaude
andcommitted
Add abstract getMaxVarcharLength() to Adapter class
Add the abstract method to the base Adapter class and implement it in the Pool adapter to fix PHPStan errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent ca84265 commit 428be5e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/Database/Adapter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,13 @@ abstract public function getLimitForIndexes(): int;
899899
*/
900900
abstract public function getMaxIndexLength(): int;
901901

902+
/**
903+
* Get the maximum VARCHAR length for this adapter
904+
*
905+
* @return int
906+
*/
907+
abstract public function getMaxVarcharLength(): int;
908+
902909
/**
903910
* Get the maximum UID length for this adapter
904911
*

src/Database/Adapter/Pool.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ public function getMaxIndexLength(): int
287287
return $this->delegate(__FUNCTION__, \func_get_args());
288288
}
289289

290+
public function getMaxVarcharLength(): int
291+
{
292+
return $this->delegate(__FUNCTION__, \func_get_args());
293+
}
294+
290295
public function getMaxUIDLength(): int
291296
{
292297
return $this->delegate(__FUNCTION__, \func_get_args());

0 commit comments

Comments
 (0)