wp-includes/SimplePie/src/Registry.php:224Call a static method for a type
$typeSimplePie\class-string$methodstring$parametersSimplePie\array<mixed>optional[]mixed public function &call($type, string $method, array $parameters = []) { $class = $this->get_class($type); if ($class === null) { throw new InvalidArgumentException(sprintf( '%s(): Argument #1 ($type) "%s" not found in class list.', __METHOD__, $type ), 1); } if (in_array($class, $this->legacy)) { switch ($type) { case Cache::class: // For backwards compatibility with old non-static // Cache::create() methods in PHP < 8.0. // No longer supported as of PHP 8.0. if ($method === 'get_handler') { // Fixing this PHPStan error breaks CacheTest::testDirectOverrideLegacy() /** @phpstan-ignore argument.type */ $result = @call_user_func_array([$class, 'create'], $parameters); return $result; } break; } } $callable = [$class, $method]; assert(is_callable($callable), 'For PHPstan'); $result = call_user_func_array($callable, $parameters); return $result; }One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$parameters retyped from array to SimplePie\array<mixed>.verified against sourcesrc/wp-includes/SimplePie/src/Registry.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.