Skip to content

Commit 98cb7e9

Browse files
committed
Add new assertion Assert\Assertion::ulid()
1 parent d63a694 commit 98cb7e9

12 files changed

+115
-360
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## 3.3 - 2020-11-20
5+
6+
### Added assertions
7+
- `Assert\Assertion::ulid()`
8+
49
## 3.2.7 - 2019-12-19
510

611
### Fixes

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ Assertion::startsWith(mixed $string, string $needle);
265265
Assertion::string(mixed $value);
266266
Assertion::subclassOf(mixed $value, string $className);
267267
Assertion::true(mixed $value);
268+
Assertion::ulid(string $value);
268269
Assertion::url(mixed $value);
269270
Assertion::uuid(string $value);
270271
Assertion::version(string $version1, string $operator, string $version2);

lib/Assert/Assert.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ abstract class Assert
3333
*
3434
* @param mixed $value
3535
* @param string|callable|null $defaultMessage
36-
* @param string|null $defaultPropertyPath
37-
*
38-
* @return AssertionChain
3936
*
4037
* @example
4138
*
@@ -57,9 +54,6 @@ public static function that($value, $defaultMessage = null, string $defaultPrope
5754
*
5855
* @param mixed $values
5956
* @param string|callable|null $defaultMessage
60-
* @param string|null $defaultPropertyPath
61-
*
62-
* @return AssertionChain
6357
*/
6458
public static function thatAll($values, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain
6559
{
@@ -71,9 +65,6 @@ public static function thatAll($values, $defaultMessage = null, string $defaultP
7165
*
7266
* @param mixed $value
7367
* @param string|callable|null $defaultMessage
74-
* @param string|null $defaultPropertyPath
75-
*
76-
* @return AssertionChain
7768
*/
7869
public static function thatNullOr($value, $defaultMessage = null, string $defaultPropertyPath = null): AssertionChain
7970
{
@@ -82,8 +73,6 @@ public static function thatNullOr($value, $defaultMessage = null, string $defaul
8273

8374
/**
8475
* Create a lazy assertion object.
85-
*
86-
* @return LazyAssertion
8776
*/
8877
public static function lazy(): LazyAssertion
8978
{

0 commit comments

Comments
 (0)