Loading composer.lock +2 −2 Original line number Diff line number Diff line Loading @@ -9635,8 +9635,8 @@ }, "prefer-stable": true, "prefer-lowest": false, "platform": [], "platform-dev": [], "platform": {}, "platform-dev": {}, "platform-overrides": { "php": "8.1.0" }, Loading core/lib/Drupal/Core/Ajax/MessageCommand.php +7 −3 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ namespace Drupal\Core\Ajax; use Drupal\Component\Render\MarkupInterface; use Drupal\Component\Utility\Xss; use Drupal\Core\Asset\AttachedAssets; /** Loading Loading @@ -30,7 +32,7 @@ class MessageCommand implements CommandInterface, CommandWithAttachedAssetsInter /** * The message text. * * @var string * @var string|\Drupal\Component\Render\MarkupInterface */ protected $message; Loading Loading @@ -58,7 +60,7 @@ class MessageCommand implements CommandInterface, CommandWithAttachedAssetsInter /** * Constructs a MessageCommand object. * * @param string $message * @param string|\Drupal\Component\Render\MarkupInterface $message * The text of the message. * @param string|null $wrapper_query_selector * The query selector of the element to display messages in when they Loading @@ -82,7 +84,9 @@ public function __construct($message, $wrapper_query_selector = NULL, array $opt public function render() { return [ 'command' => 'message', 'message' => $this->message, 'message' => $this->message instanceof MarkupInterface ? (string) $this->message : Xss::filterAdmin($this->message), 'messageWrapperQuerySelector' => $this->wrapperQuerySelector, 'messageOptions' => $this->options, 'clearPrevious' => $this->clearPrevious, Loading core/lib/Drupal/Core/Config/StorageComparer.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Core\Config; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\MemoryBackend; use Drupal\Core\Config\Entity\ConfigDependencyManager; use Drupal\Core\DependencyInjection\DependencySerializationTrait; Loading Loading @@ -79,7 +80,7 @@ class StorageComparer implements StorageComparerInterface { * * @var \Drupal\Core\Cache\MemoryBackend */ protected $targetCacheStorage; protected CacheBackendInterface $targetCacheStorage; /** * Constructs the Configuration storage comparer. Loading core/lib/Drupal/Core/Database/Query/Select.php +9 −0 Original line number Diff line number Diff line Loading @@ -801,6 +801,15 @@ protected function prepareCountQuery() { * {@inheritdoc} */ public function __toString() { if (!is_array($this->fields) || !is_array($this->expressions) || !is_array($this->tables) || !is_array($this->order) || !is_array($this->group) || !is_array($this->union)) { throw new \UnexpectedValueException(); } // For convenience, we compile the query ourselves if the caller forgot // to do it. This allows constructs like "(string) $query" to work. When // the query will be executed, it will be recompiled using the proper Loading core/lib/Drupal/Core/Database/Query/Update.php +6 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,12 @@ public function execute() { * The prepared statement. */ public function __toString() { if (!is_array($this->fields) || !is_array($this->arguments) || !is_array($this->expressionFields)) { throw new \UnexpectedValueException(); } // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($this->comments); Loading Loading
composer.lock +2 −2 Original line number Diff line number Diff line Loading @@ -9635,8 +9635,8 @@ }, "prefer-stable": true, "prefer-lowest": false, "platform": [], "platform-dev": [], "platform": {}, "platform-dev": {}, "platform-overrides": { "php": "8.1.0" }, Loading
core/lib/Drupal/Core/Ajax/MessageCommand.php +7 −3 Original line number Diff line number Diff line Loading @@ -2,6 +2,8 @@ namespace Drupal\Core\Ajax; use Drupal\Component\Render\MarkupInterface; use Drupal\Component\Utility\Xss; use Drupal\Core\Asset\AttachedAssets; /** Loading Loading @@ -30,7 +32,7 @@ class MessageCommand implements CommandInterface, CommandWithAttachedAssetsInter /** * The message text. * * @var string * @var string|\Drupal\Component\Render\MarkupInterface */ protected $message; Loading Loading @@ -58,7 +60,7 @@ class MessageCommand implements CommandInterface, CommandWithAttachedAssetsInter /** * Constructs a MessageCommand object. * * @param string $message * @param string|\Drupal\Component\Render\MarkupInterface $message * The text of the message. * @param string|null $wrapper_query_selector * The query selector of the element to display messages in when they Loading @@ -82,7 +84,9 @@ public function __construct($message, $wrapper_query_selector = NULL, array $opt public function render() { return [ 'command' => 'message', 'message' => $this->message, 'message' => $this->message instanceof MarkupInterface ? (string) $this->message : Xss::filterAdmin($this->message), 'messageWrapperQuerySelector' => $this->wrapperQuerySelector, 'messageOptions' => $this->options, 'clearPrevious' => $this->clearPrevious, Loading
core/lib/Drupal/Core/Config/StorageComparer.php +2 −1 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ namespace Drupal\Core\Config; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Cache\MemoryBackend; use Drupal\Core\Config\Entity\ConfigDependencyManager; use Drupal\Core\DependencyInjection\DependencySerializationTrait; Loading Loading @@ -79,7 +80,7 @@ class StorageComparer implements StorageComparerInterface { * * @var \Drupal\Core\Cache\MemoryBackend */ protected $targetCacheStorage; protected CacheBackendInterface $targetCacheStorage; /** * Constructs the Configuration storage comparer. Loading
core/lib/Drupal/Core/Database/Query/Select.php +9 −0 Original line number Diff line number Diff line Loading @@ -801,6 +801,15 @@ protected function prepareCountQuery() { * {@inheritdoc} */ public function __toString() { if (!is_array($this->fields) || !is_array($this->expressions) || !is_array($this->tables) || !is_array($this->order) || !is_array($this->group) || !is_array($this->union)) { throw new \UnexpectedValueException(); } // For convenience, we compile the query ourselves if the caller forgot // to do it. This allows constructs like "(string) $query" to work. When // the query will be executed, it will be recompiled using the proper Loading
core/lib/Drupal/Core/Database/Query/Update.php +6 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,12 @@ public function execute() { * The prepared statement. */ public function __toString() { if (!is_array($this->fields) || !is_array($this->arguments) || !is_array($this->expressionFields)) { throw new \UnexpectedValueException(); } // Create a sanitized comment string to prepend to the query. $comments = $this->connection->makeComment($this->comments); Loading