1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/16741] Replace deprecated functions

PHPBB3-16741
This commit is contained in:
Marc Alexander
2022-01-17 17:08:42 +01:00
parent 78528d2b32
commit 5e6065ff9e
3 changed files with 6 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class case_insensitive_string extends Type
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
if ($platform->getName() === 'postgresql')
if ($platform instanceof postgresql_platform)
{
return 'varchar_ci';
}
@@ -37,7 +37,7 @@ class case_insensitive_string extends Type
// we used 3 times larger capacity for strings on oracle for unicode strings
// as on other platforms. This is not the case with varchar_ci, which uses
// the same length as other platforms.
if ($platform->getName() === 'oracle')
if ($platform instanceof oracle_platform)
{
return $platform->getAsciiStringTypeDeclarationSQL($column);
}