PHP 8 and Drupal 9 deprecation error

Created on 20 February 2024, 9 months ago

Problem/Motivation

I'm following up from the PHP 8 deprecation error 🐛 PHP 8 deprecation error Needs review issue.

Deprecated function: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in fullcalendar_get_version() (line 386 of modules/fullcalendar/fullcalendar.module).

In that case, they're managing version 7.x-2.0, so the patch doesn't apply. Additionally, I've encountered another issue related to Drupal 9 deprecation files. Therefore, the plan is to address both issues in a single patch for the alpha3 version.
Any suggestions for alternative approaches or updates regarding deprecated code are welcome

Proposed resolution

Change line 189 of fullcalendar.module from:

$fullcalendar_plugin = file_get_contents($fullcalendar_path, NULL, NULL, 0, 40);

to:

$fullcalendar_plugin = file_get_contents($fullcalendar_path, false, NULL, 0, 40);

Remove line 4 of fullcalendar.info.yml:

core: 8.x

🐛 Bug report
Status

Needs review

Component

Code

Created by

🇪🇸Spain gmoraleb

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

Comments & Activities

Production build 0.71.5 2024