Problem/Motivation

PHP Fatal error: Declaration of Drupal\\video\\Plugin\\Field\\FieldFormatter\\VideoPlayerFormatterBase::getEntitiesToView(Drupal\\Core\\Field\\EntityReferenceFieldItemListInterface $items, $langcode) must be compatible with Drupal\\Core\\Field\\Plugin\\Field\\FieldFormatter\\EntityReferenceFormatterBase::getEntitiesToView(Drupal\\Core\\Field\\FieldItemListInterface $items, $langcode) in /home/jenkins/workspace/D9_SANDBOX_LILY_STANDARD_VIRTUAL_Y/build/docroot/modules/contrib/video/src/Plugin/Field/FieldFormatter/VideoPlayerFormatterBase.php on line 17

Steps to reproduce

PHP 8.1
Drupal Core 9.4.x

Proposed resolution

Fix

Remaining tasks

Patch

User interface changes

No

API changes

No

Data model changes

No

Issue fork video-3305673

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

podarok created an issue. See original summary.

  • podarok committed 2df062f on 8.x-2.x
    Issue #3305673 by podarok: PHP Fatal Error: declaration...
podarok’s picture

Version: 8.x-2.x-dev » 3.0.1
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

froboy’s picture

@podarok I believe recreating this issue requires https://github.com/YCloudYUSA/yusaopeny_gated_content to be installed, seeing as you were able to recreate it on the Virtual Y sandbox.