Skip to content

Commit be21e3c

Browse files
author
mikey179
committed
deprecate old methods in favor of new ones
1 parent 0c7a03c commit be21e3c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
1.4.0 (2015-12-31)
22
------------------
33

4+
### BC breaks
5+
6+
* deprecated `bovigo\assert\predicate\Predicate::asWellAs()` in favor of the new `bovigo\assert\predicate\Predicate::and()` method, will be removed with 2.0.0
7+
* deprecated `bovigo\assert\predicate\Predicate::orElse()` in favor of the new `bovigo\assert\predicate\Predicate::or()` method, will be removed with 2.0.0
8+
9+
10+
### Other changes
11+
412
* added `bovigo\assert\predicate\Predicate::and()`
513
* added `bovigo\assert\predicate\Predicate::or()`
614

src/main/php/predicate/Predicate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public function __invoke($value)
6060
*
6161
* @param \bovigo\assert\predicate\Predicate|callable $other
6262
* @return \bovigo\assert\predicate\Predicate
63+
* @deprecated since 1.4.0, use and($other) instead, will be removed with 2.0.0
6364
*/
6465
public function asWellAs($other)
6566
{
@@ -71,6 +72,7 @@ public function asWellAs($other)
7172
*
7273
* @param \bovigo\assert\predicate\Predicate|callable $other
7374
* @return \bovigo\assert\predicate\Predicate
75+
* @deprecated since 1.4.0, use or($other) instead, will be removed with 2.0.0
7476
*/
7577
public function orElse($other)
7678
{

0 commit comments

Comments
 (0)