From 3e4d3fdffba8776ef334b16b57e3f8209a08f1e5 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 11 Apr 2016 20:14:02 +0200 Subject: Slim down app.php because php 7 already turns errors into exceptions and php 5.6, well whatever :D --- appinfo/app.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/appinfo/app.php b/appinfo/app.php index d987e985b..9eaf981c2 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -13,16 +13,6 @@ namespace OCA\News\AppInfo; -use Exception; - require_once __DIR__ . '/../vendor/autoload.php'; - -// Turn all errors into exceptions to combat shitty library behavior -set_error_handler(function ($code, $message) { - if ($code === E_ERROR || $code === E_USER_ERROR) { - throw new Exception($message, $code); - } -}); - (new Application)->registerConfig(); -- cgit v1.2.3