- 🇫🇮Finland kirsij
I tried applying this patch to the latest version of jsonapi_search_api and encountered a fatal PHP error:
PHP Fatal error: Cannot redeclare Drupal\jsonapi_search_api\Resource\IndexResource::$eventDispatcher in /modules/contrib/jsonapi_search_api/src/Resource/IndexResource.php on line 62
It looks like the patch adds the $eventDispatcher property to the IndexResource class, but that property already exists in the current version of the module. This causes a duplicate declaration error.