MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / each

Method each

examples/demo.php:5163–5169  ·  view source on GitHub ↗

* @param callable(TValue, TKey): void $callback * @return static */

(callable $callback)

Source from the content-addressed store, hash-verified

5161 * @return static<TKey, TValue>
5162 */
5163 public function each(callable $callback)
5164 {
5165 foreach ($this->items as $key => $value) {
5166 $callback($value, $key);
5167 }
5168 return $this;
5169 }
5170
5171 /** @return TValue|null */
5172 public function first(): mixed

Callers 2

demoMethod · 0.80
runDemoAssertionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected