1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-21 09:23:57 +01:00

used attribute Deprecated

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

View File

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

View File

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

View File

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

View File

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

View File

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