From 729c8f521a59674efa787cd327cf38ab197cbd6c Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Fri, 2 Sep 2016 13:32:26 +1000 Subject: [PATCH] Fixed InvalidArgumentException namespace - Issue #1 --- classes/outagedb.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/outagedb.php b/classes/outagedb.php index 4d1dd0c..ff0da94 100644 --- a/classes/outagedb.php +++ b/classes/outagedb.php @@ -60,10 +60,10 @@ final class outagedb global $DB; if (!is_int($id)) { - throw new InvalidArgumentException('$id must be an int.'); + throw new \InvalidArgumentException('$id must be an int.'); } if ($id <= 0) { - throw new InvalidArgumentException('$id must be positive.'); + throw new \InvalidArgumentException('$id must be positive.'); } $outage = $DB->get_record('auth_outage', ['id' => $id]); @@ -116,10 +116,10 @@ final class outagedb global $DB; if (!is_int($id)) { - throw new InvalidArgumentException('$id must be an int.'); + throw new \InvalidArgumentException('$id must be an int.'); } if ($id <= 0) { - throw new InvalidArgumentException('$id must be positive.'); + throw new \InvalidArgumentException('$id must be positive.'); } $DB->delete_records('auth_outage', ['id' => $id]);