From 97b768cd7d325549775cba5f8a2eb18a21e79b62 Mon Sep 17 00:00:00 2001 From: Landrok Date: Tue, 13 Sep 2016 23:11:41 +0200 Subject: [PATCH] Fix uncatchable exception L116 ``` } catch (Exception $e) { // can't be caught because CodeClimate\PHPMD\Exception does not exist``` Another way to fix this is: ``` } catch (\Exception $e) {``` --- Runner.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Runner.php b/Runner.php index abaeb7c..c316892 100644 --- a/Runner.php +++ b/Runner.php @@ -2,6 +2,7 @@ namespace CodeClimate\PHPMD; +use Exception; use PHPMD\PHPMD; use PHPMD\RuleSetFactory; use PHPMD\Writer\StreamWriter;