From bf1440f773c24fba28b5c4dfa56cf80a2ffda92e Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Thu, 16 Mar 2023 08:14:15 +0100 Subject: [PATCH] [TASK] TS Parser: Update a visitor variable name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A misleading variable name is updated to make the method more clear and easier to read. Resolves: #100181 Related: #97816 Releases: main Change-Id: I12b646196cbb80d521eb8bb3a1bd175ef3d9bbdc Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78136 Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Wouter Wolters <typo3@wouterwolters.nl> Tested-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Reviewed-by: Simon Schaufelberger <simonschaufi+typo3@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: core-ci <typo3@b13.com> --- .../IncludeTree/Visitor/IncludeTreeAstBuilderVisitor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeAstBuilderVisitor.php b/typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeAstBuilderVisitor.php index 775340362461..b823fe1b530f 100644 --- a/typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeAstBuilderVisitor.php +++ b/typo3/sysext/core/Classes/TypoScript/IncludeTree/Visitor/IncludeTreeAstBuilderVisitor.php @@ -82,11 +82,11 @@ final class IncludeTreeAstBuilderVisitor implements IncludeTreeVisitorInterface */ public function visit(IncludeInterface $include, int $currentDepth): void { - $tokenStream = $include->getLineStream(); - if ($tokenStream && !$include->isSplit()) { + $lineStream = $include->getLineStream(); + if ($lineStream && !$include->isSplit()) { // A "split" include means that the entire TypoScript is split into child includes. The // TokenStream of the split include itself must not be parsed, so it's excluded here. - $this->ast = $this->astBuilder->build($tokenStream, $this->ast, $this->flatConstants); + $this->ast = $this->astBuilder->build($lineStream, $this->ast, $this->flatConstants); } } } -- GitLab