Problem/Motivation
When upgrading to PHP8, I got this warning:
FILE: /taxonomy_manager/taxonomy_manager.admin.inc
------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------
864 | WARNING | Declaring a required parameter after an optional one is deprecated since PHP 8.0. Parameter $tid is optional, while parameter $vid1 is required.
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Upgrade server to PHP8, then run a drush command and see warning.
Proposed resolution
Update parameters in function declaration.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy_manager-php-deprecation-3277876-3.patch | 607 bytes | ethomas08 |
| taxonomy_manager-php8.patch | 594 bytes | shkiper |
Comments
Comment #2
vladimirausLooks good. Thanks @shkiper
Comment #3
ethomas08 commentedThe patch works in PHP 7 and 8 environments but not on PHP 5. Uploading a patch that works for my old legacy project.
Comment #5
vladimirausThank you! Committed! 🥂