Fixed E_DEPRECATED

This commit is contained in:
Alexandre Gomes Gaigalas 2011-04-14 19:32:48 -03:00
parent de059a8ba1
commit 9b04572604
2 changed files with 2 additions and 2 deletions

View file

@ -163,7 +163,8 @@ class ValidationException extends InvalidArgumentException
{
if (!empty($this->id) && $this->id != 'validation')
return $this->id;
$id = end(explode('\\', get_called_class()));
$classParts = explode('\\', get_called_class());
$id = end($classParts);
$id = lcfirst(str_replace('Exception', '', $id));
return $id;
}

View file

@ -40,5 +40,4 @@ class KeyTest extends \PHPUnit_Framework_TestCase
$obj['bar'] = 'foo';
$this->assertTrue($validator->assert($obj));
}
}