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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | bc-3460680-1.patch | 496 bytes | andysipple |
Comments
Comment #2
andysipple commentedPatch
Comment #3
ayush.pandey commentedReproducible, and the patch fixes the issue swiftly as its just declaration change. Moving to RTBC
Comment #4
ayush.pandey commentedComment #6
yce commentedThanks, pushed to dev 3.2.x-dev.