Calling static trait method Drupal\high_contrast\HighContrastTrait::highContrastEnabled() is deprecated

Created on 18 May 2022, over 2 years ago
Updated 29 January 2023, almost 2 years ago

As of PHP 8.1.0, calling a static method, or accessing a static property directly on a trait is deprecated. Static methods and properties should only be accessed on a class using the trait.

This is the reason this module causes the following error.

Deprecated function: Calling static trait method Drupal\high_contrast\HighContrastTrait::highContrastEnabled() is deprecated

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France Oulalahakabu

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.

Production build 0.71.5 2024