I need help with this code i get error exception please help

protected function parse()
{
foreach ($this->parameters as $key => $value) {
if (’–’ === $key) {
return;
}
if (0 === strpos($key, ‘–’)) {
$this->addLongOption(substr($key, 2), $value);
} elseif (’-’ === $key[0]) {
$this->addShortOption(substr($key, 1), $value);
} else {
$this->addArgument($key, $value);
}
}
}