I have dev-1.x version of module. After upgrading Drupal from 8 to 9.2.4 I get a lot of errors

TypeError: Argument 1 passed to Drupal\Core\Template\TwigExtension::createAttribute() must be of the type array, null given

caused by

{% set rating_item_attributes = create_attribute() %}

from fivestar/templates/fivestar-static.html.twig

Comments

vladimir.krupin created an issue. See original summary.

vladimir.krupin’s picture

This patch works for me. Check it please.

tr’s picture

Status: Active » Needs review

  • TR committed 069dc79 on 8.x-1.x authored by vladimir.krupin
    Issue #3229941 by vladimir.krupin: TwigExtension::createAttribute...
tr’s picture

Status: Needs review » Fixed

Committed. Thanks for the patch.

Status: Fixed » Closed (fixed)

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