backdrop-contrib / paragraphs

Paragraphs module to control your content flow
https://backdropcms.org/project/paragraphs
GNU General Public License v2.0
5 stars 11 forks source link

Fix typehinting of buildContent in ParagraphsItemEntityController #120

Closed argiepiano closed 2 years ago

argiepiano commented 2 years ago

EntityControllerInterface::buildContent() now typehints its first argument, $entity, as EntityInterface. All classes that implement this interface or an extension of this interface (including ParagraphsItemEntityController) must typehint the first argument the same way.

This is not an issue with PHP 7.3 or 7.4, but it does throw a fatal error in 7.1 , and probably also in 7.0. See this report in Entity Plus issue queue. https://github.com/backdrop-contrib/entity_plus/issues/117

I'll submit a PR for this.

argiepiano commented 2 years ago

PR #121