Address fatal errors
2 open threads
Closes #3394197
Merge request reports
Activity
35 35 * 36 36 * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory 37 37 * The factory for configuration objects. 38 * @param \Drupal\Core\Config\TypedConfigManagerInterface|null $typedConfigManager 38 * @param \Drupal\Core\Config\TypedConfigManagerInterface|null $_typedConfigManager 39 39 * The typed config manager. 40 40 */ 41 41 public function __construct( 42 42 ConfigFactoryInterface $config_factory, 43 protected ?TypedConfigManagerInterface $typedConfigManager = NULL, 43 private ?TypedConfigManagerInterface $_typedConfigManager = NULL, changed this line in version 5 of the diff
added 1 commit
- 7b6e8419 - Only deprecate passing non-TypedConfigManagerInterface things into $typedConfigManager
40 40 */ 41 41 public function __construct( 42 42 ConfigFactoryInterface $config_factory, 43 protected ?TypedConfigManagerInterface $typedConfigManager = NULL, 43 protected $typedConfigManager = NULL, 44 44 ) { 45 45 $this->setConfigFactory($config_factory); 46 if ($this->typedConfigManager === NULL) { 47 @trigger_error('Calling ConfigFormBase::__construct() without the $typedConfigManager argument is deprecated in drupal:10.2.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3373502', E_USER_DEPRECATED); 48 $this->typedConfigManager = \Drupal::service('config.typed'); 46 47 if (!$typedConfigManager instanceof TypedConfigManagerInterface) { 48 $type = get_debug_type($typedConfigManager); TIL 🤯 New in PHP 8 apparently! https://www.php.net/manual/en/function.get-debug-type.php
Please register or sign in to reply