Missing NULL in hook_file_download() return documentation

Created on 22 January 2025, 3 months ago

Problem/Motivation

 * @return string[]|int
 *   If the user does not have permission to access the file, return -1. If the
 *   user has permission, return an array with the appropriate headers. If the
 *   file is not controlled by the current module, the return value should be
 *   NULL.

The documentation for hook_file_download() contradicts itself because NULL is a valid return type that is not listed in @return.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

documentation

Created by

🇷🇺Russia niklan Russia, Perm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024