Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[Insight] Missing use statement should be avoided #297

Closed
cmuench opened this Issue · 0 comments

1 participant

@cmuench
Owner

in src/N98/Magento/Command/Admin/User/ChangePasswordCommand.php, line 58

The class Exception resolves to N98\Magento\Command\Admin\User\Exception in this class namespace. This class doesn't seem to exist in the project class map. Did you forget to add a use statement? Or did you forget to prefix this class with a \?

                    throw new \Exception(implode(PHP_EOL, $result));
                }
                $user->setPassword($password);
                $user->save();
                $output->writeln('<info>Password successfully changed</info>');
            } catch (Exception $e) {
                $output->writeln('<error>' . $e->getMessage() . '</error>');
            }
        }
    }
}

Posted from SensioLabsInsight

@cmuench cmuench closed this
@steverobbins steverobbins referenced this issue from a commit in steverobbins/n98-magerun
@cmuench cmuench [BUGFIX] [Insight] #297 Missing use statement should be avoided 5ce8a85
@steverobbins steverobbins referenced this issue from a commit in steverobbins/n98-magerun
@cmuench cmuench [BUGFIX] [Insight] #297 Missing use statement should be avoided 64749b9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.