Skip to content

Mark modX::parseChunk as deprecated (#12433) #15978

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
Jan 25, 2022

Conversation

Mark-H
Copy link
Collaborator

@Mark-H Mark-H commented Jan 19, 2022

What does it do?

Marks modX::parseChunk as deprecated to discourage its use, targeting removal with the next batch of breaking changes, in 4.0.

Why is it needed?

As discussed in #12433, parseChunk doesn't behave how one would expect it to, and is a lesser alternative to getChunk. That means we're better off without it, however we can't just remove it out-right.

How to test

Not applicable.

Related issue(s)/PR(s)

Fixes #12433

@Mark-H Mark-H added this to the v3.0.0-rc2 milestone Jan 19, 2022
@Mark-H Mark-H requested a review from opengeek as a code owner January 19, 2022 18:40
@cla-bot cla-bot bot added the cla-signed CLA confirmed for contributors to this PR. label Jan 19, 2022
@@ -1954,8 +1954,10 @@ public function getChunk($chunkName, array $properties= []) {
* @param string $prefix The placeholder prefix, defaults to [[+.
* @param string $suffix The placeholder suffix, defaults to ]].
* @return string The processed chunk with the placeholders replaced.
* @deprecated Prefer using $modx->getChunk, to be removed in MODX 4.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this mention the "deprecated since release"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed CLA confirmed for contributors to this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants