Skip to content

Commit 15bf126

Browse files
authored
Merge pull request #98 from honeybadger-io/parent-shouldreport
Call shouldReport() of parent
2 parents 92e6bc6 + e72c026 commit 15bf126

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- Call `shouldReport()` of parent ([#97](https://github.com/honeybadger-io/honeybadger-php/pull/97))
10+
- Add `capture_deprecations` config flag ([#97](https://github.com/honeybadger-io/honeybadger-php/pull/97))
811

912
## [3.13.1] - 2022-02-16
1013
### Added

config/honeybadger.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@
8888
'verify' => env('HONEYBADGER_VERIFY_SSL', true),
8989
],
9090

91+
/**
92+
* Enable reporting deprecation warnings.
93+
*/
94+
'capture_deprecations' => false,
95+
9196
/**
9297
* Exception classes that should not be reported to Honeybadger.
9398
*/

src/HoneybadgerLaravel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ protected function shouldReport(Throwable $throwable): bool
7070
return true;
7171
}
7272

73-
return ! $this->excludedException($throwable)
74-
&& ! empty($this->config['api_key'])
75-
&& $this->config['report_data'];
73+
return parent::shouldReport($throwable);
7674
}
7775

7876
protected function setRouteActionAndUserContext(Request $request): void

0 commit comments

Comments
 (0)