We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7adf74f commit f5949f2Copy full SHA for f5949f2
tests/modules/graphql_file_validate/graphql_file_validate.module
@@ -10,7 +10,7 @@ use Drupal\file\FileInterface;
10
/**
11
* Implements hook_file_validate().
12
*/
13
-function graphql_file_validate(FileInterface $file) {
+function graphql_file_validate(FileInterface $file): void {
14
if (!file_exists($file->getFileUri())) {
15
throw new \Exception('File does not exist during validation: ' . $file->getFileUri());
16
}
0 commit comments