Skip to content

Commit ff8f833

Browse files
committed
public constants
1 parent 6e4b22c commit ff8f833

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/Database/Drivers/MySqlDriver.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ class MySqlDriver implements Nette\Database\ISupplementalDriver
1919
{
2020
use Nette\SmartObject;
2121

22-
const ERROR_ACCESS_DENIED = 1045;
23-
const ERROR_DUPLICATE_ENTRY = 1062;
24-
const ERROR_DATA_TRUNCATED = 1265;
22+
public const
23+
ERROR_ACCESS_DENIED = 1045,
24+
ERROR_DUPLICATE_ENTRY = 1062,
25+
ERROR_DATA_TRUNCATED = 1265;
2526

2627
/** @var Nette\Database\Connection */
2728
private $connection;

src/Database/IStructure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
interface IStructure
1717
{
18-
const
18+
public const
1919
FIELD_TEXT = 'string',
2020
FIELD_BINARY = 'bin',
2121
FIELD_BOOL = 'bool',

src/Database/ISupplementalDriver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
*/
1616
interface ISupplementalDriver
1717
{
18-
const SUPPORT_SEQUENCE = 'sequence',
18+
public const
19+
SUPPORT_SEQUENCE = 'sequence',
1920
SUPPORT_SELECT_UNGROUPED_COLUMNS = 'ungrouped_cols',
2021
SUPPORT_MULTI_INSERT_AS_SELECT = 'insert_as_select',
2122
SUPPORT_MULTI_COLUMN_AS_OR_COND = 'multi_column_as_or',

0 commit comments

Comments
 (0)