sittercity/sprig — comment on commit 2b3efaf5ee20fd2f8360bd10e61a14c38be5d809
File: classes/sprig/core.php line 1576
By kureikain:

Hi Zombor,

This won't work in some case when we define callback as value, not key of array filter. That way, we should check:

```
$name = call_user_func($filter, $data[$name]);
} elseif (is_callable($whoknows)) {
$this->$name = call_user_func($whoknows, $data[$name]);
} else {
//throw new Kohana_Exception('Filter is Invalid');
}
```

In my case, I had:

```
array(
array($this, 'some_method'),
),
```

That way I cannot use callback as array key.