Wrong return type in FileSystemInterface::tempnam

Created on 12 January 2025, 3 months ago

Problem/Motivation

The return type of \Drupal\Core\File\FileSystemInterface::tempnam has wrong type

 * @return string|bool
 *   The new temporary filename, or FALSE on failure.

Proposed resolution

Change it to string|false

This subtle difference is important when you narrowing types for stat analysis.

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

documentation

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
  • Documentation

    Primarily changes documentation, not code. For Drupal core issues, select the Documentation component instead of using this tag. In general, component selection is preferred over tag selection.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024