Case sensitive TypeError: uasort(): Argument #2 ($callback) must be a valid callback

Created on 31 May 2023, over 1 year ago
Updated 2 June 2023, over 1 year ago

Problem/Motivation

The class name given to the uasort() function in src/Plugin/Field/FieldType/OfficeHoursItemList.php cannot be found and causes [error] TypeError: uasort(): Argument #2 ($callback) must be a valid callback, class "Drupal\office_hours\Plugin\Field\FieldType\OfficehoursItemBase" not found in uasort().

Proposed resolution

Replace Drupal\office_hours\Plugin\Field\FieldType\OfficehoursItemBase with Drupal\office_hours\Plugin\Field\FieldType\OfficeHoursItemBase.

🐛 Bug report
Status

Fixed

Version

1.9

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024