X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FRender%2FPlaceholder%2FChainedPlaceholderStrategy.php;h=7ca41237b431e7387fa15e20848faad8e1f9a428;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=8e90faae86da7ac3365267fa7f213191a6bb9cfb;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php b/web/core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php index 8e90faae8..7ca41237b 100644 --- a/web/core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php +++ b/web/core/lib/Drupal/Core/Render/Placeholder/ChainedPlaceholderStrategy.php @@ -35,7 +35,7 @@ class ChainedPlaceholderStrategy implements PlaceholderStrategyInterface { } // Assert that there is at least one strategy. - assert('!empty($this->placeholderStrategies)', 'At least one placeholder strategy must be present; by default the fallback strategy \Drupal\Core\Render\Placeholder\SingleFlushStrategy is always present.'); + assert(!empty($this->placeholderStrategies), 'At least one placeholder strategy must be present; by default the fallback strategy \Drupal\Core\Render\Placeholder\SingleFlushStrategy is always present.'); $new_placeholders = []; @@ -44,7 +44,7 @@ class ChainedPlaceholderStrategy implements PlaceholderStrategyInterface { // and this uses a variation of the "chain of responsibility" design pattern. foreach ($this->placeholderStrategies as $strategy) { $processed_placeholders = $strategy->processPlaceholders($placeholders); - assert('array_intersect_key($processed_placeholders, $placeholders) === $processed_placeholders', 'Processed placeholders must be a subset of all placeholders.'); + assert(array_intersect_key($processed_placeholders, $placeholders) === $processed_placeholders, 'Processed placeholders must be a subset of all placeholders.'); $placeholders = array_diff_key($placeholders, $processed_placeholders); $new_placeholders += $processed_placeholders;