Skip to content

[TASK] Deprecate childNodes property for ViewHelpers #1091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025

Conversation

s2b
Copy link
Contributor

@s2b s2b commented May 27, 2025

Currently, the raw parser nodes are provided twice to each
ViewHelper instance: Once with setViewHelperNode() and
once with setChildNodes(). The latter is now deprecated,
together with the property $childNodes, since it can easily
be subsituted like this within a ViewHelper:

before:

$this->childNodes

after:

$this->viewHelperNode->getChildNodes()

@s2b
Copy link
Contributor Author

s2b commented May 27, 2025

Associated TYPO3 Core patch: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89571

Currently, the raw parser nodes are provided twice to each
ViewHelper instance: Once with `setViewHelperNode()` and
once with `setChildNodes()`. The latter is now deprecated,
together with the property `$childNodes`, since it can easily
be subsituted like this within a ViewHelper:

before:

```php
$this->childNodes
```

after:

```php
$this->viewHelperNode->getChildNodes()
```
@s2b s2b force-pushed the task/deprecateChildNodes branch from 3d28cec to c7c1cb7 Compare May 28, 2025 15:17
@s2b s2b merged commit 2dba34d into main May 28, 2025
8 checks passed
@s2b s2b deleted the task/deprecateChildNodes branch May 28, 2025 15:20
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull request May 28, 2025
`AbstractViewHelper::$childNodes` is deprecated and will  be
removed with Fluid v5.

Original change in Fluid: TYPO3/Fluid#1091

Resolves: #106792
Releases: main, 13.4
Change-Id: I9aec7b161f287ecbafe461b327141bb8083d1ee4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89571
Reviewed-by: Simon Praetorius <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Tested-by: core-ci <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Simon Praetorius <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
reviewtypo3org pushed a commit to TYPO3/typo3 that referenced this pull request May 28, 2025
`AbstractViewHelper::$childNodes` is deprecated and will  be
removed with Fluid v5.

Original change in Fluid: TYPO3/Fluid#1091

Resolves: #106792
Releases: main, 13.4
Change-Id: I9aec7b161f287ecbafe461b327141bb8083d1ee4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89586
Tested-by: core-ci <[email protected]>
Tested-by: Simon Praetorius <[email protected]>
Reviewed-by: Simon Praetorius <[email protected]>
TYPO3IncTeam pushed a commit to TYPO3-CMS/fluid that referenced this pull request May 28, 2025
`AbstractViewHelper::$childNodes` is deprecated and will  be
removed with Fluid v5.

Original change in Fluid: TYPO3/Fluid#1091

Resolves: #106792
Releases: main, 13.4
Change-Id: I9aec7b161f287ecbafe461b327141bb8083d1ee4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89571
Reviewed-by: Simon Praetorius <[email protected]>
Reviewed-by: Christian Kuhn <[email protected]>
Tested-by: Stefan Bürk <[email protected]>
Tested-by: core-ci <[email protected]>
Reviewed-by: Stefan Bürk <[email protected]>
Tested-by: Simon Praetorius <[email protected]>
Tested-by: Christian Kuhn <[email protected]>
TYPO3IncTeam pushed a commit to TYPO3-CMS/fluid that referenced this pull request May 28, 2025
`AbstractViewHelper::$childNodes` is deprecated and will  be
removed with Fluid v5.

Original change in Fluid: TYPO3/Fluid#1091

Resolves: #106792
Releases: main, 13.4
Change-Id: I9aec7b161f287ecbafe461b327141bb8083d1ee4
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89586
Tested-by: core-ci <[email protected]>
Tested-by: Simon Praetorius <[email protected]>
Reviewed-by: Simon Praetorius <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants