@@ -47,7 +47,7 @@ public function testParse($node, $expression, $names = [])
47
47
$ this ->assertEquals ($ node , $ parser ->parse ($ lexer ->tokenize ($ expression ), $ names ));
48
48
}
49
49
50
- public function getParseData ()
50
+ public static function getParseData ()
51
51
{
52
52
$ arguments = new Node \ArgumentsNode ();
53
53
$ arguments ->addElement (new Node \ConstantNode ('arg1 ' ));
@@ -139,10 +139,10 @@ public function getParseData()
139
139
140
140
// chained calls
141
141
[
142
- $ this -> createGetAttrNode (
143
- $ this -> createGetAttrNode (
144
- $ this -> createGetAttrNode (
145
- $ this -> createGetAttrNode (new Node \NameNode ('foo ' ), 'bar ' , Node \GetAttrNode::METHOD_CALL ),
142
+ self :: createGetAttrNode (
143
+ self :: createGetAttrNode (
144
+ self :: createGetAttrNode (
145
+ self :: createGetAttrNode (new Node \NameNode ('foo ' ), 'bar ' , Node \GetAttrNode::METHOD_CALL ),
146
146
'foo ' , Node \GetAttrNode::METHOD_CALL ),
147
147
'baz ' , Node \GetAttrNode::PROPERTY_CALL ),
148
148
'3 ' , Node \GetAttrNode::ARRAY_CALL ),
@@ -192,7 +192,7 @@ public function getParseData()
192
192
];
193
193
}
194
194
195
- private function createGetAttrNode ($ node , $ item , $ type )
195
+ private static function createGetAttrNode ($ node , $ item , $ type )
196
196
{
197
197
return new Node \GetAttrNode ($ node , new Node \ConstantNode ($ item , Node \GetAttrNode::ARRAY_CALL !== $ type ), new Node \ArgumentsNode (), $ type );
198
198
}
@@ -208,7 +208,7 @@ public function testParseWithInvalidPostfixData($expr, $names = [])
208
208
$ parser ->parse ($ lexer ->tokenize ($ expr ), $ names );
209
209
}
210
210
211
- public function getInvalidPostfixData ()
211
+ public static function getInvalidPostfixData ()
212
212
{
213
213
return [
214
214
[
@@ -258,7 +258,7 @@ public function testLint($expression, $names, string $exception = null)
258
258
$ this ->expectNotToPerformAssertions ();
259
259
}
260
260
261
- public function getLintData (): array
261
+ public static function getLintData (): array
262
262
{
263
263
return [
264
264
'valid expression ' => [
0 commit comments