Skip to content

Commit 5015895

Browse files
OskarStarknicolas-grekas
authored andcommitted
Migrate to static data providers using rector/rector
1 parent 4684d53 commit 5015895

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/ExpressionLanguageTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testParseThrowsInsteadOfNotice()
119119
$expressionLanguage->parse('node.', ['node']);
120120
}
121121

122-
public function shortCircuitProviderEvaluate()
122+
public static function shortCircuitProviderEvaluate()
123123
{
124124
$object = new class(\Closure::fromCallable([static::class, 'fail'])) {
125125
private $fail;
@@ -143,7 +143,7 @@ public function foo()
143143
];
144144
}
145145

146-
public function shortCircuitProviderCompile()
146+
public static function shortCircuitProviderCompile()
147147
{
148148
return [
149149
['false and foo', ['foo' => 'foo'], false],
@@ -267,7 +267,7 @@ public function testRegisterAfterCompile($registerCallback)
267267
$registerCallback($el);
268268
}
269269

270-
public function getRegisterCallbacks()
270+
public static function getRegisterCallbacks()
271271
{
272272
return [
273273
[

Tests/LexerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testTokenizeThrowsErrorOnUnclosedBrace()
5454
$this->lexer->tokenize($expression);
5555
}
5656

57-
public function getTokenizeData()
57+
public static function getTokenizeData()
5858
{
5959
return [
6060
[

0 commit comments

Comments
 (0)