Unexpected 'EntityTypeManagerInterface' and 'RemoteManagerInterface' (T_STRING) in SettingsForm.php

Created on 14 June 2023, over 1 year ago

Problem/Motivation

Hello.
After upgrade from Drupal 8.9.20 to 9.5.9 version I had blocked during clear cache and my site was broken.

wodby@php.container:/var/www/html $ drush cr
[14-Jun-2023 07:01:20 UTC] PHP Parse error:  syntax error, unexpected 'EntityTypeManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/web/modules/contrib/entity_share_cron/src/Form/SettingsForm.php on line 39

Parse error: syntax error, unexpected 'EntityTypeManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/web/modules/contrib/entity_share_cron/src/Form/SettingsForm.php on line 39
 [warning] Drush command terminated abnormally.
wodby@php.container:/var/www/html $ drush cr
[14-Jun-2023 07:03:35 UTC] PHP Parse error:  syntax error, unexpected 'RemoteManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/web/modules/contrib/entity_share_cron/src/Form/SettingsForm.php on line 46

Parse error: syntax error, unexpected 'RemoteManagerInterface' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /var/www/html/web/modules/contrib/entity_share_cron/src/Form/SettingsForm.php on line 46
 [warning] Drush command terminated abnormally.

Steps to reproduce

Install Drupal 8.9.20
Install Entity share cron module 3.0.2 version
Upgrade from Drupal 8.9.20 to 9.5.9 version
Clear cache by 'drush cr'
Get error

Proposed resolution

Change code in entity_share_cron/src/Form/SettingsForm.php

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine ankondrat4 Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024