1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-03 04:37:35 +02:00

used attribute Deprecated

This commit is contained in:
David Grudl
2024-11-23 17:59:08 +01:00
parent ffa630885d
commit e653fd22fb
5 changed files with 14 additions and 17 deletions

View File

@@ -30,7 +30,7 @@ class Connection implements Drivers\Connection
{ {
public const ErrorExceptionThrown = -836; public const ErrorExceptionThrown = -836;
/** @deprecated use FirebirdDriver::ErrorExceptionThrown */ #[\Deprecated('use FirebirdDriver::ErrorExceptionThrown')]
public const ERROR_EXCEPTION_THROWN = self::ErrorExceptionThrown; public const ERROR_EXCEPTION_THROWN = self::ErrorExceptionThrown;
/** @var resource */ /** @var resource */

View File

@@ -39,13 +39,13 @@ class Connection implements Drivers\Connection
public const ErrorDuplicateEntry = 1062; public const ErrorDuplicateEntry = 1062;
public const ErrorDataTruncated = 1265; public const ErrorDataTruncated = 1265;
/** @deprecated use MySqliDriver::ErrorAccessDenied */ #[\Deprecated('use MySqliDriver::ErrorAccessDenied')]
public const ERROR_ACCESS_DENIED = self::ErrorAccessDenied; public const ERROR_ACCESS_DENIED = self::ErrorAccessDenied;
/** @deprecated use MySqliDriver::ErrorDuplicateEntry */ #[\Deprecated('use MySqliDriver::ErrorDuplicateEntry')]
public const ERROR_DUPLICATE_ENTRY = self::ErrorDuplicateEntry; public const ERROR_DUPLICATE_ENTRY = self::ErrorDuplicateEntry;
/** @deprecated use MySqliDriver::ErrorDataTruncated */ #[\Deprecated('use MySqliDriver::ErrorDataTruncated')]
public const ERROR_DATA_TRUNCATED = self::ErrorDataTruncated; public const ERROR_DATA_TRUNCATED = self::ErrorDataTruncated;
private \mysqli $connection; private \mysqli $connection;

View File

@@ -52,7 +52,7 @@ class Fluent implements IDataSource
Identifier = 'n', Identifier = 'n',
Remove = false; Remove = false;
/** @deprecated use Fluent::Remove */ #[\Deprecated('use Fluent::Remove')]
public const REMOVE = self::Remove; public const REMOVE = self::Remove;
public static array $masks = [ public static array $masks = [

View File

@@ -27,31 +27,31 @@ class Type
Time = 't', Time = 't',
TimeInterval = 'ti'; TimeInterval = 'ti';
/** @deprecated use Type::Text */ #[\Deprecated('use Type::Text')]
public const TEXT = self::Text; public const TEXT = self::Text;
/** @deprecated use Type::Binary */ #[\Deprecated('use Type::Binary')]
public const BINARY = self::Binary; public const BINARY = self::Binary;
/** @deprecated use Type::Bool */ #[\Deprecated('use Type::Bool')]
public const BOOL = self::Bool; public const BOOL = self::Bool;
/** @deprecated use Type::Integer */ #[\Deprecated('use Type::Integer')]
public const INTEGER = self::Integer; public const INTEGER = self::Integer;
/** @deprecated use Type::Float */ #[\Deprecated('use Type::Float')]
public const FLOAT = self::Float; public const FLOAT = self::Float;
/** @deprecated use Type::Date */ #[\Deprecated('use Type::Date')]
public const DATE = self::Date; public const DATE = self::Date;
/** @deprecated use Type::DateTime */ #[\Deprecated('use Type::DateTime')]
public const DATETIME = self::DateTime; public const DATETIME = self::DateTime;
/** @deprecated use Type::Time */ #[\Deprecated('use Type::Time')]
public const TIME = self::Time; public const TIME = self::Time;
/** @deprecated use Type::TimeInterval */ #[\Deprecated('use Type::TimeInterval')]
public const TIME_INTERVAL = self::TimeInterval; public const TIME_INTERVAL = self::TimeInterval;

View File

@@ -39,13 +39,10 @@ class dibi
{ {
public const Version = '6.0-dev'; public const Version = '6.0-dev';
/** @deprecated use dibi::Version */
public const VERSION = self::Version; public const VERSION = self::Version;
/** @deprecated use Dibi\Fluent::AffectedRows */
public const AFFECTED_ROWS = Dibi\Fluent::AffectedRows; public const AFFECTED_ROWS = Dibi\Fluent::AffectedRows;
/** @deprecated use Dibi\Fluent::Identifier */
public const IDENTIFIER = Dibi\Fluent::Identifier; public const IDENTIFIER = Dibi\Fluent::Identifier;
/** sorting order */ /** sorting order */