Skip to content

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.

$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