Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Validation / Plugin / Validation / Constraint / PrimitiveTypeConstraintValidator.php
index f71e2e11420391ab229b908e388d4b006399998c..be11f80049795774aef1f08b00a1c8702baa6dc1 100644 (file)
@@ -73,7 +73,7 @@ class PrimitiveTypeConstraintValidator extends ConstraintValidator {
     if (!$valid) {
       // @todo: Provide a good violation message for each problem.
       $this->context->addViolation($constraint->message, [
-        '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value)
+        '%value' => is_object($value) ? get_class($value) : (is_array($value) ? 'Array' : (string) $value),
       ]);
     }
   }