diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eebeb7..6dbdc8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 1.7.0 - 2022-09-28 + +- By default, `Helpers::throw_if()` now throws `\Exception` rather than `\Error`. + ## 1.6.1 - 2022-09-28 [Source code changes](https://github.com/luizbills/wp-plugin-base/compare/1.6.0...1.6.1) diff --git a/core/Traits/Throw_Helpers.php b/core/Traits/Throw_Helpers.php index 1d35eb9..d09cf42 100644 --- a/core/Traits/Throw_Helpers.php +++ b/core/Traits/Throw_Helpers.php @@ -4,7 +4,7 @@ trait Throw_Helpers { public static function get_error_class () { - return \Error::class; + return \Exception::class; } public static function throw_if ( $condition, $message, $exception_class = null ) { diff --git a/core/VERSION b/core/VERSION index 9c6d629..bd8bf88 100644 --- a/core/VERSION +++ b/core/VERSION @@ -1 +1 @@ -1.6.1 +1.7.0