Hi! I faced the same issues on the PHP8.1
I would suggest adding a return type to each method as the overridden methods only return the types of the parent methods.
The last submitted patch, 4: facetapi_deprecated_functions-3324815-4.patch, failed testing. View results โ
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
over 1 year ago 2:37pm 3 April 2023 - ๐ฉ๐ชGermany Ronino
@Pavel_SPN: If I am not mistaken, return type declarations were introduced in PHP 7, but Drupal 7's requirements list PHP 5.3 as the minimum.
Hi Ronino,
"The minimum recommended PHP version for Drupal 7 was PHP 7.2.x until its official end-of-life at 30 Nov, 2020."
https://www.drupal.org/docs/7/system-requirements/php-requirements-for-d... โ (1)%20The%20minimum%20recommended%20PHP,get%20full%20PHP%208%20support.
- ๐ฉ๐ชGermany Ronino
I guess no one is using PHP 5.ั anymore
You might be right, but even though 5.x is not recommended anymore it's still supported and still the minimum requirement ;-)
https://git.drupalcode.org/project/drupal/blob/7.x/INSTALL.txt#L18
PHP 5.3.3 (at least, PHP 7.x or greater recommended) (https://www.php.net/).
Ok, then let the maintainer decide which option is more suitable :)
- Status changed to Needs review
over 1 year ago 2:19pm 6 April 2023 - ๐บ๐ธUnited States Todd Zebert Los Angeles, CA
There is a newer issue on this, with the same fix https://www.drupal.org/project/facetapi/issues/3352819 ๐ PHP 8.1: deprecated function warnings due to missing return type Closed: duplicate
- Status changed to RTBC
about 1 year ago 11:42pm 24 October 2023 - ๐จ๐ฆCanada joelpittet Vancouver
I'm RTBCing this one in #2, but not to fussed which patch gets committed. But probably this one as it's older.
Hiding #4 patch
- ๐บ๐ธUnited States DamienMcKenna NH, USA
Methinks the module needs a new maintainer?
- ๐ฉ๐ชGermany Anybody Porta Westfalica
Thank you very much @joelpittet! Would be great to see a new release soon, does anyone know someone... ;D
-
joseph.olstad โ
committed 9760cef8 on 7.x-1.x
Issue #3324815 by Ronino, Pavel_SPN, tibezh, Todd Zebert, joelpittet,...
-
joseph.olstad โ
committed 9760cef8 on 7.x-1.x
- Status changed to Fixed
10 months ago 7:31pm 4 February 2024 - ๐จ๐ฆCanada joseph.olstad
Automatically closed - issue fixed for 2 weeks with no activity.