Skip to content

Commit

Permalink
Migrate to static data providers using rector/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored and nicolas-grekas committed Feb 14, 2023
1 parent 4684d53 commit 5015895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Tests/ExpressionLanguageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function testParseThrowsInsteadOfNotice()
$expressionLanguage->parse('node.', ['node']);
}

public function shortCircuitProviderEvaluate()
public static function shortCircuitProviderEvaluate()
{
$object = new class(\Closure::fromCallable([static::class, 'fail'])) {
private $fail;
Expand All @@ -143,7 +143,7 @@ public function foo()
];
}

public function shortCircuitProviderCompile()
public static function shortCircuitProviderCompile()
{
return [
['false and foo', ['foo' => 'foo'], false],
Expand Down Expand Up @@ -267,7 +267,7 @@ public function testRegisterAfterCompile($registerCallback)
$registerCallback($el);
}

public function getRegisterCallbacks()
public static function getRegisterCallbacks()
{
return [
[
Expand Down
2 changes: 1 addition & 1 deletion Tests/LexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function testTokenizeThrowsErrorOnUnclosedBrace()
$this->lexer->tokenize($expression);
}

public function getTokenizeData()
public static function getTokenizeData()
{
return [
[
Expand Down

0 comments on commit 5015895

Please sign in to comment.