Skip to content

Commit 57b812d

Browse files
committed
Remove useless constant type hint
Signed-off-by: Maurício Meneghini Fauth <[email protected]>
1 parent f9b9c7e commit 57b812d

File tree

5 files changed

+0
-38
lines changed

5 files changed

+0
-38
lines changed

src/Context.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ abstract class Context
3131
* The maximum length of a keyword.
3232
*
3333
* @see static::$TOKEN_KEYWORD
34-
*
35-
* @var int
3634
*/
3735
public const KEYWORD_MAX_LENGTH = 30;
3836

@@ -41,17 +39,13 @@ abstract class Context
4139
*
4240
* @see static::$TOKEN_LABEL
4341
* Ref: https://dev.mysql.com/doc/refman/5.7/en/statement-labels.html
44-
*
45-
* @var int
4642
*/
4743
public const LABEL_MAX_LENGTH = 16;
4844

4945
/**
5046
* The maximum length of an operator.
5147
*
5248
* @see static::$TOKEN_OPERATOR
53-
*
54-
* @var int
5549
*/
5650
public const OPERATOR_MAX_LENGTH = 4;
5751

src/Statements/TransactionStatement.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ class TransactionStatement extends Statement
1818
{
1919
/**
2020
* START TRANSACTION and BEGIN.
21-
*
22-
* @var int
2321
*/
2422
public const TYPE_BEGIN = 1;
2523

2624
/**
2725
* COMMIT and ROLLBACK.
28-
*
29-
* @var int
3026
*/
3127
public const TYPE_END = 2;
3228

src/Token.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,11 @@ class Token
2727
* This type is used when the token is invalid or its type cannot be
2828
* determined because of the ambiguous context. Further analysis might be
2929
* required to detect its type.
30-
*
31-
* @var int
3230
*/
3331
public const TYPE_NONE = 0;
3432

3533
/**
3634
* SQL specific keywords: SELECT, UPDATE, INSERT, etc.
37-
*
38-
* @var int
3935
*/
4036
public const TYPE_KEYWORD = 1;
4137

@@ -48,15 +44,11 @@ class Token
4844
* Assignment operators: =, +=, -=, etc.
4945
* SQL specific operators: . (e.g. .. WHERE database.table ..),
5046
* * (e.g. SELECT * FROM ..)
51-
*
52-
* @var int
5347
*/
5448
public const TYPE_OPERATOR = 2;
5549

5650
/**
5751
* Spaces, tabs, new lines, etc.
58-
*
59-
* @var int
6052
*/
6153
public const TYPE_WHITESPACE = 3;
6254

@@ -77,46 +69,34 @@ class Token
7769
* comment*\/
7870
*
7971
* Backslashes were added to respect PHP's comments syntax.
80-
*
81-
* @var int
8272
*/
8373
public const TYPE_COMMENT = 4;
8474

8575
/**
8676
* Boolean values: true or false.
87-
*
88-
* @var int
8977
*/
9078
public const TYPE_BOOL = 5;
9179

9280
/**
9381
* Numbers: 4, 0x8, 15.16, 23e42, etc.
94-
*
95-
* @var int
9682
*/
9783
public const TYPE_NUMBER = 6;
9884

9985
/**
10086
* Literal strings: 'string', "test".
10187
* Some of these strings are actually symbols.
102-
*
103-
* @var int
10488
*/
10589
public const TYPE_STRING = 7;
10690

10791
/**
10892
* Database, table names, variables, etc.
10993
* For example: ```SELECT `foo`, `bar` FROM `database`.`table`;```.
110-
*
111-
* @var int
11294
*/
11395
public const TYPE_SYMBOL = 8;
11496

11597
/**
11698
* Delimits an unknown string.
11799
* For example: ```SELECT * FROM test;```, `test` is a delimiter.
118-
*
119-
* @var int
120100
*/
121101
public const TYPE_DELIMITER = 9;
122102

@@ -127,8 +107,6 @@ class Token
127107
* begin_label: LOOP [statement_list] END LOOP [end_label]
128108
* begin_label: REPEAT [statement_list] ... END REPEAT [end_label]
129109
* begin_label: WHILE ... DO [statement_list] END WHILE [end_label].
130-
*
131-
* @var int
132110
*/
133111
public const TYPE_LABEL = 10;
134112

tests/Misc/UtfStringTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ class UtfStringTest extends TestCase
1212
{
1313
/**
1414
* Sample phrase in French.
15-
*
16-
* @var UtfString
1715
*/
1816
public const TEST_PHRASE = 'Les naïfs ægithales hâtifs pondant à Noël où il gèle sont sûrs d\'être déçus en voyant leurs drôles d\'œufs abîmés.';
1917

2018
/**
2119
* The length of the sample phrase.
22-
*
23-
* @var int
2420
*/
2521
public const TEST_PHRASE_LEN = 113;
2622

tools/ContextGenerator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ class ContextGenerator
7979
* 2 - class
8080
* 3 - link
8181
* 4 - keywords array
82-
*
83-
* @var string
8482
*/
8583
public const TEMPLATE =
8684
'<?php' . "\n" .

0 commit comments

Comments
 (0)