Skip to content

Commit 527feaa

Browse files
committed
used attribute Deprecated
1 parent 290c0cf commit 527feaa

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
@@ -29,7 +29,7 @@ class Connection implements Drivers\Connection
2929
{
3030
public const ErrorExceptionThrown = -836;
3131

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

3535
/** @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
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)