mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 17:50:13 +02:00
Fixed E_DEPRECATED
This commit is contained in:
parent
de059a8ba1
commit
9b04572604
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -40,5 +40,4 @@ class KeyTest extends \PHPUnit_Framework_TestCase
|
|||
$obj['bar'] = 'foo';
|
||||
$this->assertTrue($validator->assert($obj));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue