Skip to content

Commit 731da0e

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Serializer] Fix CsvEncoder decode on empty data [Tests] Migrate data providers to static ones stop using assertObjectHasAttribute()/assertObjectHasNotAttribute() [Dotenv] Fix phpdoc Dotenv [Config] Fix phpdoc nullable Fix some typos
2 parents 0d60e3b + 49aba92 commit 731da0e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Tests/ParserTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testParse($node, $expression, $names = [])
4747
$this->assertEquals($node, $parser->parse($lexer->tokenize($expression), $names));
4848
}
4949

50-
public function getParseData()
50+
public static function getParseData()
5151
{
5252
$arguments = new Node\ArgumentsNode();
5353
$arguments->addElement(new Node\ConstantNode('arg1'));
@@ -176,10 +176,10 @@ public function getParseData()
176176

177177
// chained calls
178178
[
179-
$this->createGetAttrNode(
180-
$this->createGetAttrNode(
181-
$this->createGetAttrNode(
182-
$this->createGetAttrNode(new Node\NameNode('foo'), 'bar', Node\GetAttrNode::METHOD_CALL),
179+
self::createGetAttrNode(
180+
self::createGetAttrNode(
181+
self::createGetAttrNode(
182+
self::createGetAttrNode(new Node\NameNode('foo'), 'bar', Node\GetAttrNode::METHOD_CALL),
183183
'foo', Node\GetAttrNode::METHOD_CALL),
184184
'baz', Node\GetAttrNode::PROPERTY_CALL),
185185
'3', Node\GetAttrNode::ARRAY_CALL),
@@ -233,7 +233,7 @@ public function getParseData()
233233
];
234234
}
235235

236-
private function createGetAttrNode($node, $item, $type)
236+
private static function createGetAttrNode($node, $item, $type)
237237
{
238238
return new Node\GetAttrNode($node, new Node\ConstantNode($item, Node\GetAttrNode::ARRAY_CALL !== $type), new Node\ArgumentsNode(), $type);
239239
}
@@ -249,7 +249,7 @@ public function testParseWithInvalidPostfixData($expr, $names = [])
249249
$parser->parse($lexer->tokenize($expr), $names);
250250
}
251251

252-
public function getInvalidPostfixData()
252+
public static function getInvalidPostfixData()
253253
{
254254
return [
255255
[
@@ -299,7 +299,7 @@ public function testLint($expression, $names, string $exception = null)
299299
$this->expectNotToPerformAssertions();
300300
}
301301

302-
public function getLintData(): array
302+
public static function getLintData(): array
303303
{
304304
return [
305305
'valid expression' => [

0 commit comments

Comments
 (0)