Skip to content

Commit 573381c

Browse files
authored
Update changelog for 1.6.0 (#156)
1 parent 58d4b30 commit 573381c

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

CHANGELOG.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,34 @@ Changelog
33

44
## UNRELEASED
55

6+
## 1.6.0 (2019-11-24)
7+
8+
### Added
9+
10+
* added `Assert::validArrayKey()`
11+
* added `Assert::isNonEmptyList()`
12+
* added `Assert::isNonEmptyMap()`
13+
* added `@throws InvalidArgumentException` annotations to all methods that throw.
14+
* added `@psalm-assert` for the list type to the `isList` assertion.
15+
16+
### Fixed
17+
18+
* `ResourceBundle` & `SimpleXMLElement` now pass the `isCountable` assertions.
19+
They are countable, without implementing the `Countable` interface.
20+
* The doc block of `range` now has the proper variables.
21+
* An empty array will now pass `isList` and `isMap`. As it is a valid form of both.
22+
If a non empty variant is needed, use `isNonEmptyList` or `isNonEmptyMap`.
23+
24+
### Changed
25+
26+
* Removed some `@psalm-assert` annotations, that were 'side effect' assertions See:
27+
* [#144](https://github.com/webmozart/assert/pull/144)
28+
* [#145](https://github.com/webmozart/assert/issues/145)
29+
* [#146](https://github.com/webmozart/assert/pull/146)
30+
* [#150](https://github.com/webmozart/assert/pull/150)
31+
* If you use psalm, the minimum version needed is `3.6.0`. Which is enforced through a composer conflict.
32+
If you don't use psalm, then this has no impact.
33+
634
## 1.5.0 (2019-08-24)
735

836
### Added
@@ -14,8 +42,8 @@ Changelog
1442

1543
### Fixed
1644

17-
* `Assert::endsWith()` would not give the correct result when dealing with multibyte suffix.
18-
* `Assert::length(), minLength, maxLength, lengthBetween` would not give the correct result when dealing with multibyte characters.
45+
* `Assert::endsWith()` would not give the correct result when dealing with multibyte suffix.
46+
* `Assert::length(), minLength, maxLength, lengthBetween` would not give the correct result when dealing with multibyte characters.
1947

2048
**NOTE**: These 2 changes may break your assertions if you relied on the fact that multibyte characters didn't behave correctly.
2149

0 commit comments

Comments
 (0)