/**
  * @param callable(value:mixed,index:int):mixed $callback
  * @return static
  */
 public function map($callback)
 {
     $callback = $this->callbackParser->parseArrowFunction($callback);
     return parent::map($callback);
 }
Esempio n. 2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testShouldThrowInvalidArgumentExceptionOnSettingNotCallableCallbackToMap()
 {
     $this->list->map(1);
 }