forked from symfony/symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 5.4: Fix CI Bump ext-redis in CI on PHP >= 8.4 Adjust pretty name of closures on PHP 8.4 implement NodeVisitorInterface instead of extending AbstractNodeVisitor
- Loading branch information
Showing
23 changed files
with
39 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,12 @@ | |
use Twig\Node\ModuleNode; | ||
use Twig\Node\Node; | ||
use Twig\Node\SetNode; | ||
use Twig\NodeVisitor\AbstractNodeVisitor; | ||
use Twig\NodeVisitor\NodeVisitorInterface; | ||
|
||
/** | ||
* @author Fabien Potencier <[email protected]> | ||
*/ | ||
final class TranslationDefaultDomainNodeVisitor extends AbstractNodeVisitor | ||
final class TranslationDefaultDomainNodeVisitor implements NodeVisitorInterface | ||
{ | ||
private Scope $scope; | ||
|
||
|
@@ -37,7 +37,7 @@ public function __construct() | |
$this->scope = new Scope(); | ||
} | ||
|
||
protected function doEnterNode(Node $node, Environment $env): Node | ||
public function enterNode(Node $node, Environment $env): Node | ||
{ | ||
if ($node instanceof BlockNode || $node instanceof ModuleNode) { | ||
$this->scope = $this->scope->enter(); | ||
|
@@ -83,7 +83,7 @@ protected function doEnterNode(Node $node, Environment $env): Node | |
return $node; | ||
} | ||
|
||
protected function doLeaveNode(Node $node, Environment $env): ?Node | ||
public function leaveNode(Node $node, Environment $env): ?Node | ||
{ | ||
if ($node instanceof TransDefaultDomainNode) { | ||
return null; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,14 +18,14 @@ | |
use Twig\Node\Expression\FilterExpression; | ||
use Twig\Node\Expression\FunctionExpression; | ||
use Twig\Node\Node; | ||
use Twig\NodeVisitor\AbstractNodeVisitor; | ||
use Twig\NodeVisitor\NodeVisitorInterface; | ||
|
||
/** | ||
* TranslationNodeVisitor extracts translation messages. | ||
* | ||
* @author Fabien Potencier <[email protected]> | ||
*/ | ||
final class TranslationNodeVisitor extends AbstractNodeVisitor | ||
final class TranslationNodeVisitor implements NodeVisitorInterface | ||
{ | ||
public const UNDEFINED_DOMAIN = '_undefined'; | ||
|
||
|
@@ -49,7 +49,7 @@ public function getMessages(): array | |
return $this->messages; | ||
} | ||
|
||
protected function doEnterNode(Node $node, Environment $env): Node | ||
public function enterNode(Node $node, Environment $env): Node | ||
{ | ||
if (!$this->enabled) { | ||
return $node; | ||
|
@@ -98,7 +98,7 @@ protected function doEnterNode(Node $node, Environment $env): Node | |
return $node; | ||
} | ||
|
||
protected function doLeaveNode(Node $node, Environment $env): ?Node | ||
public function leaveNode(Node $node, Environment $env): ?Node | ||
{ | ||
return $node; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters