<?php declare(strict_types=1); /** * @template T * * @param ReflectionClass<T> $class * * @return array<int, method-string<T>> */ function MethodNames(ReflectionClass $class, int $filter = null) : array { return array_map( /** * @return method-string<T> */ function (ReflectionMethod $method) : string { return $method->name; }, $class->getMethods($filter) ); }
You have javascript disabled. You will not be able to edit any code.