Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / filter / src / FilterProcessResult.php
index 3fa592b6277ea3466f56feefc01b2dde540ff745..5c256118f584e7f1431c9e5e1fa3b0fa800a4f00 100644 (file)
@@ -78,7 +78,7 @@ class FilterProcessResult extends BubbleableMetadata {
    * @param string $processed_text
    *   The text as processed by a text filter.
    */
-  public function __construct($processed_text) {
+  public function __construct($processed_text = '') {
     $this->processedText = $processed_text;
   }
 
@@ -143,7 +143,7 @@ class FilterProcessResult extends BubbleableMetadata {
       'placeholders' => [
         $placeholder_markup => [
           '#lazy_builder' => [$callback, $args],
-        ]
+        ],
       ],
     ]);