Skip to content

Commit

Permalink
used attribute Deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 16, 2025
1 parent b6e7433 commit 7ea0634
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/Firebird/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
6 changes: 3 additions & 3 deletions src/Dibi/Drivers/MySQLi/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Fluent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
18 changes: 9 additions & 9 deletions src/Dibi/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
3 changes: 0 additions & 3 deletions src/Dibi/dibi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7ea0634

Please sign in to comment.