[PHP 8.1] Deprecated function: Calling static trait method Drupal\field_css\Traits\CssTrait::itemPrefixes

Created on 3 October 2022, about 2 years ago
Updated 10 April 2024, 8 months ago

Deprecated function: Calling static trait method Drupal\field_css\Traits\CssTrait::itemPrefixes is deprecated, it should only be called on a class using the trait in field_css_entity_view_alter() (line 20 of modules/contrib/field_css/field_css.module).

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jcontreras

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡¨πŸ‡±Chile roberto_araya

    Could you please create a new release at this point??.

  • You have absurdly over engineered this fix. You can still use static methods on traits. A trait is a list of methods that are "merged" (possibly to various classes) which "use" the trait. Once using a trait, the class now have all those trait's methods as methods of its own. Just call them using "self::method()" instead "trait::method()" and you are good to go.

Production build 0.71.5 2024