Skip to content

Commit e455c99

Browse files
committed
fix(hom): missing return
1 parent 6ba1916 commit e455c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/HigherOrderMessage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ public function __construct(UnderscoreBase $underscore, $method)
2929

3030
public function __call($method, $args)
3131
{
32-
$this->underscore->{$this->method}(function ($item) use ($method, $args) {
32+
return $this->underscore->{$this->method}(function ($item) use ($method, $args) {
3333
return \call_user_func_array([$item, $method], $args);
3434
});
3535
}
3636

3737
public function __get($prop)
3838
{
39-
$this->underscore->{$this->method}(function ($item) use ($prop) {
39+
return $this->underscore->{$this->method}(function ($item) use ($prop) {
4040
$props = \array_column([$item], $prop);
4141

4242
return $props ? $props[0] : null;

0 commit comments

Comments
 (0)