Skip to content

Commit 180819a

Browse files
Sample constant
1 parent d8c2f5d commit 180819a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace MartinGeorgiev\Doctrine\DBAL;
6+
7+
abstract class Type
8+
{
9+
public const BIGINT_ARRAY = 'bigint[]';
10+
}

src/MartinGeorgiev/Doctrine/DBAL/Types/BigIntArray.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace MartinGeorgiev\Doctrine\DBAL\Types;
66

7+
use MartinGeorgiev\Doctrine\DBAL\Type;
8+
79
/**
810
* Implementation of PostgreSQL BIGINT[] data type.
911
*
@@ -17,7 +19,7 @@ class BigIntArray extends BaseIntegerArray
1719
/**
1820
* @var string
1921
*/
20-
protected const TYPE_NAME = 'bigint[]';
22+
protected const TYPE_NAME = Type::BIGINT_ARRAY;
2123

2224
protected function getMinValue(): int
2325
{

0 commit comments

Comments
 (0)