Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Jan 16, 2016
1 parent 681b8ae commit 2f02d37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ActiveRecord/Helpers.php
Expand Up @@ -49,7 +49,7 @@ static public function patch($name, $callback)
{
if (empty(self::$mapping[$name]))
{
throw new \RuntimeException("Undefined patchable: $name.");
throw new \LogicException("Undefined patchable: $name.");
}

$previous = self::$mapping[$name];
Expand All @@ -63,10 +63,10 @@ static public function patch($name, $callback)
*/

/**
* @throws \RuntimeException
* @throws \LogicException
*/
static protected function default_get_model()
{
throw new \RuntimeException("The function " . __FUNCTION__ . "() needs to be patched.");
throw new \LogicException("The function `ICanBoogie\\ActiveRecord\\get_model()` needs to be patched.");
}
}

0 comments on commit 2f02d37

Please sign in to comment.