PHP 8.1 ยป Deprecated function

Created on 16 January 2023, about 2 years ago

Problem/Motivation

Hi :)
Context: Currently we are updating our sites from PHP 7.4 to 8.1
The deprecation shows up but I don't know how exactly it's triggered.

Deprecated function: uasort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in Drupal\language\LanguageNegotiator->getNegotiationMethods() (line 206 of core/modules/language/src/LanguageNegotiator.php).
Drupal\language\LanguageNegotiator->getNegotiationMethods('language_interface') (Line: 136)
Drupal\language\HttpKernel\PathProcessorLanguage->initProcessors('inbound') (Line: 92)

Steps to reproduce

Currently unknown.

Proposed resolution

Fix the deprectation by using the info:
Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero

Remaining tasks

Fix the deprecation.

๐Ÿ“Œ Task
Status

Closed: works as designed

Version

9.5

Component
Language systemย  โ†’

Last updated about 16 hours ago

  • Maintained by
  • ๐Ÿ‡ฉ๐Ÿ‡ชGermany @sun
Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany eugen zerr

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Closed: works as designed about 2 years ago
Production build 0.71.5 2024