Skip to content
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

Do not dynamically assign modProcessorResponse to modConnectorResponse #16563

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

opengeek
Copy link
Member

What does it do?

Assign the processor result to a local variable rather than dynamically creating a "response" property on the modConnectorResponse class.

Why is it needed?

In PHP 8.2, dynamically assigning a property to a class is deprecated. When calling runProcessor, the result is only used within the outputContent() method, so there is no need to assign the result from runProcessor to a property of modConnectorResponse dynamically or add a property to modConnectorResponse to hold the result.

How to test

Confirm no deprecated warnings are logged when running a processor in a connector.

Related issue(s)/PR(s)

Alternative solution to #16562

The result is used within a single method, so there is no need to assign the result from runProcessor to a property of modConnectorResponse dynamically, or to add a property to modConnectorResponse to hold the result.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant