Skip to content

Commit fa6b87f

Browse files
committed
used attribute Deprecated
1 parent 4fde4d0 commit fa6b87f

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

src/Dibi/Drivers/Firebird/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Connection implements Drivers\Connection
3030
{
3131
public const ErrorExceptionThrown = -836;
3232

33-
/** @deprecated use FirebirdDriver::ErrorExceptionThrown */
33+
#[\Deprecated('use FirebirdDriver::ErrorExceptionThrown')]
3434
public const ERROR_EXCEPTION_THROWN = self::ErrorExceptionThrown;
3535

3636
/** @var resource */

src/Dibi/Drivers/MySQLi/Connection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ class Connection implements Drivers\Connection
3939
public const ErrorDuplicateEntry = 1062;
4040
public const ErrorDataTruncated = 1265;
4141

42-
/** @deprecated use MySqliDriver::ErrorAccessDenied */
42+
#[\Deprecated('use MySqliDriver::ErrorAccessDenied')]
4343
public const ERROR_ACCESS_DENIED = self::ErrorAccessDenied;
4444

45-
/** @deprecated use MySqliDriver::ErrorDuplicateEntry */
45+
#[\Deprecated('use MySqliDriver::ErrorDuplicateEntry')]
4646
public const ERROR_DUPLICATE_ENTRY = self::ErrorDuplicateEntry;
4747

48-
/** @deprecated use MySqliDriver::ErrorDataTruncated */
48+
#[\Deprecated('use MySqliDriver::ErrorDataTruncated')]
4949
public const ERROR_DATA_TRUNCATED = self::ErrorDataTruncated;
5050

5151
private \mysqli $connection;

src/Dibi/Fluent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Fluent implements IDataSource
5252
Identifier = 'n',
5353
Remove = false;
5454

55-
/** @deprecated use Fluent::Remove */
55+
#[\Deprecated('use Fluent::Remove')]
5656
public const REMOVE = self::Remove;
5757

5858
public static array $masks = [

src/Dibi/Type.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,31 @@ class Type
2727
Time = 't',
2828
TimeInterval = 'ti';
2929

30-
/** @deprecated use Type::Text */
30+
#[\Deprecated('use Type::Text')]
3131
public const TEXT = self::Text;
3232

33-
/** @deprecated use Type::Binary */
33+
#[\Deprecated('use Type::Binary')]
3434
public const BINARY = self::Binary;
3535

36-
/** @deprecated use Type::Bool */
36+
#[\Deprecated('use Type::Bool')]
3737
public const BOOL = self::Bool;
3838

39-
/** @deprecated use Type::Integer */
39+
#[\Deprecated('use Type::Integer')]
4040
public const INTEGER = self::Integer;
4141

42-
/** @deprecated use Type::Float */
42+
#[\Deprecated('use Type::Float')]
4343
public const FLOAT = self::Float;
4444

45-
/** @deprecated use Type::Date */
45+
#[\Deprecated('use Type::Date')]
4646
public const DATE = self::Date;
4747

48-
/** @deprecated use Type::DateTime */
48+
#[\Deprecated('use Type::DateTime')]
4949
public const DATETIME = self::DateTime;
5050

51-
/** @deprecated use Type::Time */
51+
#[\Deprecated('use Type::Time')]
5252
public const TIME = self::Time;
5353

54-
/** @deprecated use Type::TimeInterval */
54+
#[\Deprecated('use Type::TimeInterval')]
5555
public const TIME_INTERVAL = self::TimeInterval;
5656

5757

src/Dibi/dibi.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ class dibi
3939
{
4040
public const Version = '6.0-dev';
4141

42-
/** @deprecated use dibi::Version */
4342
public const VERSION = self::Version;
4443

45-
/** @deprecated use Dibi\Fluent::AffectedRows */
4644
public const AFFECTED_ROWS = Dibi\Fluent::AffectedRows;
4745

48-
/** @deprecated use Dibi\Fluent::Identifier */
4946
public const IDENTIFIER = Dibi\Fluent::Identifier;
5047

5148
/** sorting order */

0 commit comments

Comments
 (0)