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

Remove unused argument #8682

Merged
merged 1 commit into from
Feb 28, 2017
Merged

Remove unused argument #8682

merged 1 commit into from
Feb 28, 2017

Conversation

mfdj
Copy link
Contributor

@mfdj mfdj commented Feb 26, 2017

Populator::populateMappings(…) method signature declares two parameters but is passed three arguments in App/Bootstrap::populateAutoloader

The third parameter was removed from signature and body at: 39abd59 this PR suggests remove the third argument at the call site.

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Feb 26, 2017

CLA assistant check
All committers have signed the CLA.

@@ -135,7 +135,7 @@ public static function populateAutoloader($rootDir, $initParams)
{
$dirList = self::createFilesystemDirectoryList($rootDir, $initParams);
$autoloadWrapper = AutoloaderRegistry::getAutoloader();
Populator::populateMappings($autoloadWrapper, $dirList, new ComponentRegistrar());
Populator::populateMappings($autoloadWrapper, $dirList);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! All such occurrences may be found with static code analysis, added to my TODO :)

@mfdj mfdj changed the title Remove unused parameter Remove unused argument Feb 26, 2017
@okorshenko okorshenko self-assigned this Feb 26, 2017
@okorshenko okorshenko added this to the February 2017 milestone Feb 26, 2017
@magento-team magento-team merged commit 530da52 into magento:develop Feb 28, 2017
@mfdj mfdj deleted the remove-unused-parameter branch February 28, 2017 02:38
@vrann vrann added the simple label Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants