Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kill off signal() since it's private and was only 5 lines

  • Loading branch information...
commit 95256e2295066a9de95eb27e3a279b18bd374bf0 1 parent 4727dd4
@helgi helgi authored
Showing with 6 additions and 10 deletions.
  1. +6 −10 src/Exception.php
View
16 src/Exception.php
@@ -111,7 +111,12 @@ public function __construct($message, $p2 = null, $p3 = null)
}
parent::__construct($message, $code, $cause);
- $this->signal();
+
+ foreach (self::$_observers as $func) {
+ if (is_callable($func)) {
+ call_user_func($func, $this);
+ }
+ }
}
/**
@@ -132,15 +137,6 @@ public static function removeObserver($label = 'default')
unset(self::$_observers[$label]);
}
- private function signal()
- {
- foreach (self::$_observers as $func) {
- if (is_callable($func)) {
- call_user_func($func, $this);
- }
- }
- }
-
/**
* Function must be public to call on caused exceptions
* @param array
Please sign in to comment.
Something went wrong with that request. Please try again.