Skip to content

Commit b8621a7

Browse files
committed
used attribute Deprecated
1 parent 50d7a86 commit b8621a7

5 files changed

Lines changed: 14 additions & 17 deletions

File tree

src/Dibi/Drivers/Firebird/Connection.php

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

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

3434
/** @var resource */

src/Dibi/Drivers/MySQLi/Connection.php

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

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

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

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

4949
private \mysqli $connection;

src/Dibi/Fluent.php

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

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

5656
/** @var array<string, list<string>> */

src/Dibi/Type.php

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

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

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

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

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

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

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

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

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

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

5555

src/Dibi/dibi.php

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

40-
/** @deprecated use dibi::Version */
4140
public const VERSION = self::Version;
4241

43-
/** @deprecated use Dibi\Fluent::AffectedRows */
4442
public const AFFECTED_ROWS = Dibi\Fluent::AffectedRows;
4543

46-
/** @deprecated use Dibi\Fluent::Identifier */
4744
public const IDENTIFIER = Dibi\Fluent::Identifier;
4845

4946
/** sorting order */

0 commit comments

Comments
 (0)