Skip to content

Commit

Permalink
fixed return type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikey179 committed Jan 27, 2024
1 parent 0811b5c commit cbe41ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 8.0.1 (2024-01-27)

* Fixed return type hint for `bovigo\assert\predicate\isNotEqualTo()` to properly reflect that the returned instance is both of type `bovigo\assert\predicate\Predicate` and `bovigo\assert\predicate\Delta`

## 8.0.0 (2023-12-23)

* Raised minimum required PHP version to 8.2.0
Expand All @@ -9,7 +13,7 @@

## 7.0.1 (2022-12-26)

* fixed bug with incorrectly initialized delta in `bovigo\assert\predicate\equals()`
* Fixed bug with incorrectly initialized delta in `bovigo\assert\predicate\equals()`

## 7.0.0 (2022-12-25)

Expand Down
2 changes: 1 addition & 1 deletion src/main/php/predicate/predicates.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function equals($expected): Equals
*
* @api
*/
function isNotEqualTo($unexpected): Delta
function isNotEqualTo($unexpected): Predicate&Delta
{
return new class(equals($unexpected)) extends NegatePredicate implements Delta
{
Expand Down

0 comments on commit cbe41ad

Please sign in to comment.