Skip to content

Commit

Permalink
1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
luizbills authored Apr 26, 2023
1 parent b62d9d9 commit 4f9c3af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion core/Traits/Throw_Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion core/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.1
1.7.0

0 comments on commit 4f9c3af

Please sign in to comment.