Browse Source

Fix bad behavior with `MyExceptionIsStrange`

Guillaume Lafarge 11 years ago
parent
commit
191e1af05a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Error/ExceptionRenderer.php

+ 1 - 1
src/Error/ExceptionRenderer.php

@@ -199,7 +199,7 @@ class ExceptionRenderer
     {
         list(, $baseClass) = namespaceSplit(get_class($exception));
         
-        if(strpos($baseClass, 'Exception')!==false) {
+        if(substr($baseClass, -9) === 'Exception') {
             $baseClass = substr($baseClass, 0, -9);
         }