File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,60 +66,46 @@ class Lexer
6666
6767 /**
6868 * The string to be parsed.
69- *
70- * @var string|UtfString
7169 */
72- public $ str = '' ;
70+ public string | UtfString $ str = '' ;
7371
7472 /**
7573 * The length of `$str`.
7674 *
7775 * By storing its length, a lot of time is saved, because parsing methods
7876 * would call `strlen` everytime.
79- *
80- * @var int
8177 */
82- public $ len = 0 ;
78+ public int $ len = 0 ;
8379
8480 /**
8581 * The index of the last parsed character.
86- *
87- * @var int
8882 */
89- public $ last = 0 ;
83+ public int $ last = 0 ;
9084
9185 /**
9286 * Tokens extracted from given strings.
93- *
94- * @var TokensList
9587 */
96- public $ list ;
88+ public TokensList $ list ;
9789
9890 /**
9991 * The default delimiter. This is used, by default, in all new instances.
100- *
101- * @var string
10292 */
103- public static $ defaultDelimiter = '; ' ;
93+ public static string $ defaultDelimiter = '; ' ;
10494
10595 /**
10696 * Statements delimiter.
10797 * This may change during lexing.
108- *
109- * @var string
11098 */
111- public $ delimiter ;
99+ public string $ delimiter ;
112100
113101 /**
114102 * The length of the delimiter.
115103 *
116104 * Because `parseDelimiter` can be called a lot, it would perform a lot of
117105 * calls to `strlen`, which might affect performance when the delimiter is
118106 * big.
119- *
120- * @var int
121107 */
122- public $ delimiterLen ;
108+ public int $ delimiterLen ;
123109
124110 /**
125111 * @param string|UtfString $str the query to be lexed
You can’t perform that action at this time.
0 commit comments