laravel-airbrake icon indicating copy to clipboard operation
laravel-airbrake copied to clipboard

Update `keysBlacklist` option to `keysBlocklist`

Open thompiler opened this issue 3 years ago • 2 comments

Howdy!

We recently updated the phpbrake library to use updated terminology for the filtering option. keysBlacklist is still supported but is deprecated in favor of keysBlocklist. Users that set keysBlacklist will see a message like this in their log though it will still work at filtering params:

phpbrake: keysBlacklist is a deprecated option. Use keysBlocklist instead.

I've done some testing myself (full disclosure: Laravel novice) with this library in an example Laravel app and I think simply updating these two mentions to keysBlocklist would do the trick:

https://github.com/TheoKouzelis/laravel-airbrake/blob/e6adcae6c9577224a59f8a635602b4de12e04143/config/airbrake.php#L15

https://github.com/TheoKouzelis/laravel-airbrake/blob/da1e9470efd43ccdb82c025143d7ffd9662bfd28/README.md#L40

I'd be happy to submit a PR for that if you think that would be helpful.

thompiler avatar Nov 06 '20 22:11 thompiler