Problem/Motivation

Getting the following errors after updating to Drupal 10.3

Fatal error: Access level to Drupal\brightcove\Services\ExpirableAccessTokenStorage::$time must be protected (as in class Drupal\Core\KeyValueStore\DatabaseStorageExpirable) or weaker in /var/www/web/modules/contrib/brightcove/src/Services/ExpirableAccessTokenStorage.php on line 0

Steps to reproduce

- Upgrade to drupal 10.3.
- Navigate to any page using Brightcove embed

Proposed resolution

Change the type declaration of $time in ExpirableAccessTokenStorage to TimeInterface|string|null.

CommentFileSizeAuthor
#2 bc-3460680-1.patch496 bytesandysipple

Comments

AndySipple created an issue. See original summary.

andysipple’s picture

StatusFileSize
new496 bytes

Patch

ayush.pandey’s picture

Reproducible, and the patch fixes the issue swiftly as its just declaration change. Moving to RTBC

ayush.pandey’s picture

Status: Active » Reviewed & tested by the community

  • yce committed af50744f on 3.2.x
    Issue #3460680 by AndySipple: Fix $time property's type decleration in...
yce’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, pushed to dev 3.2.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.