From 6aaa639601207551161c12373bbf8fbf428a03df Mon Sep 17 00:00:00 2001 From: Adam Vessey Date: Thu, 18 Apr 2024 15:18:40 -0300 Subject: [PATCH] Add explicit return of null. Apparently, the implicit return of null breaks the typehint? --- embargo.module | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embargo.module b/embargo.module index b9dec98..7dd6a09 100644 --- a/embargo.module +++ b/embargo.module @@ -47,6 +47,8 @@ function embargo_file_download($uri) : null|array|int { return -1; } } + + return NULL; } /**