Skip to content

Commit 8d97104

Browse files
committed
MC-29402: PHPStan: "Anonymous function has an unused use" errors
1 parent 92f2266 commit 8d97104

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/code/Magento/Customer/Controller/Adminhtml/Index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,6 @@ protected function prepareDefaultCustomerTitle(\Magento\Backend\Model\View\Resul
289289
protected function _addSessionErrorMessages($messages)
290290
{
291291
$messages = (array)$messages;
292-
$session = $this->_getSession();
293292

294293
$callback = function ($error) {
295294
if (!$error instanceof Error) {

setup/src/Magento/Setup/Console/Command/RollbackCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
122122
// we must have an exit code higher than zero to indicate something was wrong
123123
return \Magento\Framework\Console\Cli::RETURN_FAILURE;
124124
}
125-
$returnValue = $this->maintenanceModeEnabler->executeInMaintenanceMode(
125+
126+
return $this->maintenanceModeEnabler->executeInMaintenanceMode(
126127
function () use ($input, $output) {
127128
try {
128129
$helper = $this->getHelper('question');
@@ -152,7 +153,6 @@ function () use ($input, $output) {
152153
$output,
153154
false
154155
);
155-
return $returnValue;
156156
}
157157

158158
/**

0 commit comments

Comments
 (0)