Skip to content

Commit 6fba282

Browse files
committed
try to fix file_download
1 parent fdc6e46 commit 6fba282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/functional/Helper/Drupal/hook_fixtures/file_download.twig

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare(strict_types=1);
1010
/**
1111
* Implements hook_file_download().
1212
*/
13-
function {{ machine_name }}_file_download($uri) {
13+
function {{ machine_name }}_file_download($uri): array|int|null {
1414
// Check to see if this is a config download.
1515
$scheme = StreamWrapperManager::getScheme($uri);
1616
$target = StreamWrapperManager::getTarget($uri);
@@ -19,4 +19,5 @@ function {{ machine_name }}_file_download($uri) {
1919
'Content-disposition' => 'attachment; filename="config.tar.gz"',
2020
];
2121
}
22+
return NULL;
2223
}

0 commit comments

Comments
 (0)