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
Comment | File | Size | Author |
---|---|---|---|
#2 | fullcalendar-php8-drupal9-deprecation-3422605.patch | 935 bytes | gmoraleb |
Comments
Comment #2
gmoraleb CreditAttribution: gmoraleb at NTT DATA commentedHere is it, please, check it.
Thanks.
Comment #3
gmoraleb CreditAttribution: gmoraleb at NTT DATA commentedComment #4
gmoraleb CreditAttribution: gmoraleb at NTT DATA commentedComment #5
gmoraleb CreditAttribution: gmoraleb at NTT DATA commented