@@ -3,6 +3,34 @@ Changelog
3
3
4
4
## UNRELEASED
5
5
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
+
6
34
## 1.5.0 (2019-08-24)
7
35
8
36
### Added
@@ -14,8 +42,8 @@ Changelog
14
42
15
43
### Fixed
16
44
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.
19
47
20
48
** NOTE** : These 2 changes may break your assertions if you relied on the fact that multibyte characters didn't behave correctly.
21
49
0 commit comments