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

Created on 18 May 2022, about 2 years ago
Updated 29 January 2023, over 1 year 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.69.0 2024