wp-includes/class-wp-script-modules.php:561Retrieves the list of script modules marked for enqueue.
array<string, private function get_marked_for_enqueue(): array { return wp_array_slice_assoc( $this->registered, $this->queue ); }Introduced in 6.5.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
array[] to array<string,.verified against sourcesrc/wp-includes/class-wp-script-modules.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.