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