Skip to content

Commit

Permalink
Allows returning a string from SubsPackage::read_tgz_data
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Jan 31, 2024
1 parent 3519459 commit a2970a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/PackageManager/SubsPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SubsPackage
* @param bool $single_file If true returns the contents of the file specified by destination if it exists
* @param bool $overwrite Whether to overwrite existing files
* @param null|array $files_to_extract Specific files to extract
* @return array|string|false An array of information about extracted files or false on failure
* @return array|string|false Information about extracted files or false on failure
*/
public static function read_tgz_file(string $gzfilename, ?string $destination, bool $single_file = false, bool $overwrite = false, ?array $files_to_extract = null): array|string|bool
{
Expand Down Expand Up @@ -121,9 +121,9 @@ public static function read_tgz_file(string $gzfilename, ?string $destination, b
* @param bool $single_file Whether to only extract a single file
* @param bool $overwrite Whether to overwrite existing data
* @param null|array $files_to_extract If set, only extracts the specified files
* @return array|false An array of information about the extracted files or false on failure
* @return array|string|false Information about the extracted files or false on failure
*/
public static function read_tgz_data(string $data, ?string $destination, bool $single_file = false, bool $overwrite = false, ?array $files_to_extract = null): array|bool
public static function read_tgz_data(string $data, ?string $destination, bool $single_file = false, bool $overwrite = false, ?array $files_to_extract = null): array|string|bool
{
// Make sure we have this loaded.
Lang::load('Packages');
Expand Down

0 comments on commit a2970a3

Please sign in to comment.