- Issue created by @gmoraleb
- Status changed to Needs review
9 months ago 10:31am 20 February 2024
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
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
Needs review
Code