Problem/Motivation

I'm following up from the PHP 8 deprecation error 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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmoraleb created an issue. See original summary.

gmoraleb’s picture

Here is it, please, check it.

Thanks.

gmoraleb’s picture

Status: Active » Needs review
gmoraleb’s picture

Issue summary: View changes
gmoraleb’s picture

Issue summary: View changes