diff --git a/bootstrap.info.yml b/bootstrap.info.yml index ba0c9d3..cfc630b 100644 --- a/bootstrap.info.yml +++ b/bootstrap.info.yml @@ -1,6 +1,7 @@ type: theme base theme: false core_version_requirement: ^9.3 || ^10 +php: 8.1 name: 'Bootstrap' description: 'Built to use Bootstrap, a sleek, intuitive, and powerful front-end framework for faster and easier web development.' diff --git a/composer.json b/composer.json index e7f08a2..2fee311 100644 --- a/composer.json +++ b/composer.json @@ -33,6 +33,6 @@ "source": "https://git.drupalcode.org/project/bootstrap" }, "require": { - "drupal/core": "^9.3 || ^10" + "php": ">=8.1.0" } } diff --git a/src/Bootstrap.php b/src/Bootstrap.php index 7697735..6fdbdcc 100644 --- a/src/Bootstrap.php +++ b/src/Bootstrap.php @@ -1357,6 +1357,7 @@ class Bootstrap { static::$messenger->addMessage($message, $type, $repeat); } else { + // @noRector drupal_set_message($message, $type, $repeat); } } diff --git a/src/Plugin/Alter/ThemeRegistry.php b/src/Plugin/Alter/ThemeRegistry.php index 9961519..fa85bc4 100644 --- a/src/Plugin/Alter/ThemeRegistry.php +++ b/src/Plugin/Alter/ThemeRegistry.php @@ -48,7 +48,9 @@ class ThemeRegistry extends Registry implements AlterInterface { \Drupal::service('module_handler'), \Drupal::service('theme_handler'), \Drupal::service('theme.initialization'), - $this->currentTheme->getName() + \Drupal::service('cache.bootstrap'), + \Drupal::service('extension.list.module'), + $this->currentTheme->getName(), ); $this->setThemeManager(\Drupal::service('theme.manager')); $this->init(); diff --git a/src/Plugin/Provider/ProviderBase.php b/src/Plugin/Provider/ProviderBase.php index 8c94254..e9af02f 100644 --- a/src/Plugin/Provider/ProviderBase.php +++ b/src/Plugin/Provider/ProviderBase.php @@ -649,6 +649,7 @@ class ProviderBase extends PluginBase implements ProviderInterface { $fileSystem->prepareDirectory($provider_path, $options); } else { + // @noRector file_prepare_directory($provider_path, $options); } diff --git a/src/SerializedResponse.php b/src/SerializedResponse.php index 2464a9c..ab998d0 100644 --- a/src/SerializedResponse.php +++ b/src/SerializedResponse.php @@ -160,7 +160,7 @@ class SerializedResponse extends Response { /** * {@inheritdoc} */ - public function getContent() { + public function getContent(): string|false { if (!isset($this->content) && ($serializer = $this->getSerializer()) && ($data = $this->getData())) { return $serializer->encode($data); }