Skip to content
Snippets Groups Projects
Commit 915c2526 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Update less class state in TypoScript tokenizers

Detail methods of the two TypoScript tokenizers tend
to add mental load since they often update `$this`
state.

The patch changes `splitLines()` and `parseValueForConstants()`
to return updated things instead, for consuming methods
to take care of this.

This is a pre-patch to simplify #102742.

Resolves: #103944
Related: #102742
Releases: main, 12.4
Change-Id: I1a5dbccc1bdfbfc52681e323eb1fe9a2b0bb7dc7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84439


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent b1797f9d
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment