/** * @param callable(value:mixed,index:int):bool $callback * @return static */ public function filter($callback) { $callback = $this->callbackParser->parseArrowFunction($callback); return parent::filter($callback); }
/** * @expectedException \InvalidArgumentException */ public function testShouldThrowInvalidArgumentExceptionOnSettingNotCallableCallbackToFilter() { $this->list->filter(1); }