- Issue created by @m.bkm
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply
ParseError : syntax error, unexpected ')', expecting variable (T_VARIABLE) dans Composer\Autoload\includeFile() (/Applications/MAMP/htdocs/*****/modules/contrib/yoast_seo/src/EntityAnalyser.php ligne 91)
public function __construct(
EntityTypeManagerInterface $entity_type_manager,
RendererInterface $renderer,
MetatagManagerInterface $metatag_manager,
RouterInterface $router,
?ThemeManagerInterface $theme_manager = NULL,
?ThemeInitializationInterface $theme_initialization = NULL,
?ConfigFactoryInterface $configFactory = NULL,
) {
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
$this->metatagManager = $metatag_manager;
$this->router = $router;
$this->themeManager = $theme_manager ?? \Drupal::service('theme.manager');
$this->themeInitialization = $theme_initialization ?? \Drupal::service('theme.initialization');
$this->defaultTheme = ($configFactory ?? \Drupal::configFactory())->get("system.theme")->get('default');
}
The trailing comma fails on PHP 7.4
Remove trailing comma
Active
Code