[Insight] Missing use statement should be avoided #297

Closed
cmuench opened this Issue Feb 1, 2014 · 0 comments

Projects

None yet

1 participant

Owner
cmuench commented Feb 1, 2014

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 Feb 1, 2014
@steverobbins steverobbins pushed a commit to steverobbins/n98-magerun that referenced this issue Apr 7, 2015
@cmuench cmuench [BUGFIX] [Insight] #297 Missing use statement should be avoided 5ce8a85
@steverobbins steverobbins pushed a commit to steverobbins/n98-magerun that referenced this issue Apr 7, 2015
@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