diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-08-23 05:09:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 05:09:25 +0300 |
commit | 5dd7d84e2106065c63bd057d8be3c31f74bf9aed (patch) | |
tree | 83452bc3686a6ad4a59a350af1b9d9281997fa46 /plugins/BulkTracking | |
parent | 26e10c299cfa78d1ed3f8c5dc4522b87b25e25b3 (diff) |
PHP 7: when there is a fatal error in API request processing, display the original error in the api response (#10406)
* PHP 7: when there is a fatal error in API request processing, display the original error
* PHP 7 compatibility
Diffstat (limited to 'plugins/BulkTracking')
-rw-r--r-- | plugins/BulkTracking/tests/Framework/Mock/Tracker/Response.php | 2 | ||||
-rw-r--r-- | plugins/BulkTracking/tests/Unit/ResponseTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/BulkTracking/tests/Framework/Mock/Tracker/Response.php b/plugins/BulkTracking/tests/Framework/Mock/Tracker/Response.php index e514745ddb..c595a278c6 100644 --- a/plugins/BulkTracking/tests/Framework/Mock/Tracker/Response.php +++ b/plugins/BulkTracking/tests/Framework/Mock/Tracker/Response.php @@ -13,7 +13,7 @@ use Exception; class Response extends \Piwik\Plugins\BulkTracking\Tracker\Response { - protected function logExceptionToErrorLog(Exception $e) + protected function logExceptionToErrorLog($e) { // prevent from writing to console in tests } diff --git a/plugins/BulkTracking/tests/Unit/ResponseTest.php b/plugins/BulkTracking/tests/Unit/ResponseTest.php index 38c3c0cce1..91dbfc2079 100644 --- a/plugins/BulkTracking/tests/Unit/ResponseTest.php +++ b/plugins/BulkTracking/tests/Unit/ResponseTest.php @@ -15,7 +15,7 @@ use Exception; class TestResponse extends Response { - protected function logExceptionToErrorLog(Exception $e) + protected function logExceptionToErrorLog($e) { // prevent console from outputting the error_log message } |