Permalink
Browse files

Fixed E_DEPRECATED

  • Loading branch information...
alganet committed Apr 14, 2011
1 parent de059a8 commit 9b04572604b285d30e1b2cf5efd8ff53408a7656
@@ -163,7 +163,8 @@ protected function guessId()
{
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 @@ public function testValidatorAttribute()
$obj['bar'] = 'foo';
$this->assertTrue($validator->assert($obj));
}
}

0 comments on commit 9b04572

Please sign in to comment.