Skip to content

Commit c8b6e7e

Browse files
committed
v0.2.0
1 parent 32914d8 commit c8b6e7e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `php-conditional-proxy` will be documented in this file
44

5+
## 0.2.0 - 2020-06-12
6+
7+
- enforce `bool` type for `\Astrotomic\ConditionalProxy\ConditionalProxy::$condition` - [#3](https://github.com/Astrotomic/php-conditional-proxy/pull/3)
8+
59
## 0.1.0 - 2020-06-11
610

711
- initial release

src/HasConditionalCalls.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ trait HasConditionalCalls
1414
*/
1515
public function when($condition, ?Closure $callback = null)
1616
{
17-
$condition = (bool)$condition;
17+
$condition = (bool) $condition;
18+
1819
if ($callback === null) {
1920
return new ConditionalProxy($this, $condition);
2021
}

0 commit comments

Comments
 (0)