wp-admin/includes/class-wp-filesystem-ftpsockets.php:228Reads entire file into an array.
$filestringstring[]|false public function get_contents_array( $file ) { $contents = $this->get_contents( $file ); if ( is_string( $contents ) ) { return explode( "\n", $contents ); } return false; }Introduced in 2.5.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
array|false to string[]|false.verified against sourcesrc/wp-admin/includes/class-wp-filesystem-ftpsockets.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.