Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove uneeded dependency #165

Merged
merged 4 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.12.1] - 2022-05-14
## [2.13.0] - 2022-09-08
### Modified
- Remove spatie/regex dependency ([#165](https://github.com/honeybadger-io/honeybadger-php/pull/165))

## [2.12.1] - 2022-05-18
### Added
- Fix occasionally missing backtrace in errors (closes #162) ([341aefc](https://github.com/honeybadger-io/honeybadger-php/commit/341aefc3bb17c7beb71e81b4d7f918125f69c8ff))

Expand Down Expand Up @@ -144,7 +148,7 @@ adheres to [Semantic Versioning](http://semver.org/).
## [1.6.0] - 2019-07-18
### Added
- Added the ability to pass additional API parameters to exception captures specifically component and action ([#85](https://github.com/honeybadger-io/honeybadger-php/pull/85))
- Adds fingerprint and tags to the additional paramaters ([#76](https://github.com/honeybadger-io/honeybadger-php/pull/76))
- Adds fingerprint and tags to the additional parameters ([#76](https://github.com/honeybadger-io/honeybadger-php/pull/76))
- Adds method arguments to backtrace where possible ([#86](https://github.com/honeybadger-io/honeybadger-php/pull/86))

## [1.5.1] - 2019-06-10
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"ext-json": "*",
"guzzlehttp/guzzle": "^6.3|^7.0.1",
"monolog/monolog": "^2.0",
"spatie/regex": "^1.4|^2.0",
"symfony/http-foundation": ">=3.3|^4.1"
},
"require-dev": {
Expand Down
5 changes: 2 additions & 3 deletions src/BacktraceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use ErrorException;
use ReflectionClass;
use ReflectionException;
use Spatie\Regex\Regex;
use Throwable;

class BacktraceFactory
Expand Down Expand Up @@ -188,7 +187,7 @@ private function fileFromApplication(string $filePath, array $vendorPaths): bool
// On Windows, file paths use backslashes, so we have to normalise them
$path = str_replace('\\', '/', $path);

if (Regex::match('/' . array_shift($vendorPaths) . '/', $path)->hasMatch()) {
if (preg_match('/' . array_shift($vendorPaths) . '/', $path)) {
return false;
}

Expand All @@ -204,7 +203,7 @@ private function appendProjectRootToFilePath(string $filePath): string
$pregProjectRoot = preg_quote($this->config['project_root'] . '/', '/');

return $this->config['project_root']
? Regex::replace('/' . $pregProjectRoot . '/', '', $filePath)->result()
? preg_replace('/' . $pregProjectRoot . '/', '', $filePath)
: '';
}
}
2 changes: 1 addition & 1 deletion src/Honeybadger.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Honeybadger implements Reporter
/**
* SDK Version.
*/
const VERSION = '2.12.1';
const VERSION = '2.13.0';

/**
* Honeybadger API URL.
Expand Down