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

Removed unused variables from Mage_Api_Model_Server_Handler_Abstract #3862

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

fballiano
Copy link
Contributor

Those two variables are unused since they're always re-set a few lines after the instanciation.

@github-actions github-actions bot added the Component: Api PageRelates to Mage_Api label Mar 1, 2024
Copy link
Contributor

@kiatng kiatng left a comment

Choose a reason for hiding this comment

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

PHP doc:

It is not necessary to initialize variables in PHP however it is a very good practice.

In this case, the variables are of mixed type, so agree to remove.

@fballiano fballiano merged commit 8bb7561 into OpenMage:main Apr 1, 2024
17 checks passed
@fballiano fballiano deleted the uselessvariable branch April 1, 2024 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Api PageRelates to Mage_Api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants