Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding \ to core class usage in order to make it usable with namespace #152

Open
wants to merge 1 commit into from

2 participants

@magnetik

I needed this for one of my script, and I think it's quite a good practice to do so.

@jmathai
Owner

Thanks for this. Namespaces require PHP >5.3. I'd rather include this in the documentation else I'll get more emails than I know what to do with about why it doesn't work :).

@magnetik

People are still using PHP <5.3 ?!! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +1 −1  EpiOAuth.php
  2. +2 −2 EpiTwitter.php
View
2  EpiOAuth.php
@@ -418,7 +418,7 @@ public function __toString()
}
}
-class EpiOAuthException extends Exception
+class EpiOAuthException extends \Exception
{
public static function raise($response, $debug)
{
View
4 EpiTwitter.php
@@ -149,7 +149,7 @@ private function request_basic($method, $endpoint, $params = null, $username = n
}
}
-class EpiTwitterJson implements ArrayAccess, Countable, IteratorAggregate
+class EpiTwitterJson implements \ArrayAccess, \Countable, \IteratorAggregate
{
private $debug;
private $__resp;
@@ -242,7 +242,7 @@ public function __isset($name)
}
}
-class EpiTwitterException extends Exception
+class EpiTwitterException extends \Exception
{
public static function raise($response, $debug)
{
Something went wrong with that request. Please try again.