$components Components of integrations, reported in this order. */ public function __construct(private array $components = []) { } /** * @return list, * release: ?array}> */ public function components(): array { $tecActive = class_exists('Tribe__Events__Main'); $described = array_map( static fn (EnvironmentComponent $component): array => $component->describe(), $this->components ); return [ ...$described, [ 'id' => 'pods', 'active' => defined('PODS_VERSION'), 'version' => defined('PODS_VERSION') ? (string) PODS_VERSION : null, 'problems' => [], 'release' => null, ], [ 'id' => 'the-events-calendar', 'active' => $tecActive, 'version' => $tecActive ? (string) constant('Tribe__Events__Main::VERSION') : null, 'problems' => [], 'release' => null, ], ]; } }