File tree Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Expand file tree Collapse file tree 2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 20
20
*/
21
21
class ConstantNode extends Node
22
22
{
23
- public readonly bool $ isNullSafe ;
24
- private bool $ isIdentifier ;
25
-
26
- public function __construct (mixed $ value , bool $ isIdentifier = false , bool $ isNullSafe = false )
27
- {
28
- $ this ->isIdentifier = $ isIdentifier ;
29
- $ this ->isNullSafe = $ isNullSafe ;
23
+ public function __construct (
24
+ mixed $ value ,
25
+ private bool $ isIdentifier = false ,
26
+ public readonly bool $ isNullSafe = false ,
27
+ ) {
30
28
parent ::__construct (
31
29
[],
32
30
['value ' => $ value ]
Original file line number Diff line number Diff line change @@ -20,15 +20,13 @@ class TokenStream
20
20
{
21
21
public Token $ current ;
22
22
23
- private array $ tokens ;
24
23
private int $ position = 0 ;
25
- private string $ expression ;
26
24
27
- public function __construct (array $ tokens , string $ expression = '' )
28
- {
29
- $ this ->tokens = $ tokens ;
25
+ public function __construct (
26
+ private array $ tokens ,
27
+ private string $ expression = '' ,
28
+ ) {
30
29
$ this ->current = $ tokens [0 ];
31
- $ this ->expression = $ expression ;
32
30
}
33
31
34
32
/**
You can’t perform that action at this time.
0 commit comments