diff --git a/core/lib/Drupal/Core/Render/Element/Container.php b/core/lib/Drupal/Core/Render/Element/Container.php
index 357e6a5484968625232a37ab10e5c5d9dbf44cab..0708546dee6544741995c719b0c0580717236835 100644
--- a/core/lib/Drupal/Core/Render/Element/Container.php
+++ b/core/lib/Drupal/Core/Render/Element/Container.php
@@ -18,27 +18,27 @@
  *
  * Usage example:
  * @code
- * $form['needs_accommodation'] = array(
+ * $form['needs_accommodation'] = [
  *   '#type' => 'checkbox',
  *   '#title' => $this->t('Need Special Accommodations?'),
- * );
+ * ];
  *
- * $form['accommodation'] = array(
+ * $form['accommodation'] = [
  *   '#type' => 'container',
- *   '#attributes' => array(
- *     'class' => 'accommodation',
- *   ),
- *   '#states' => array(
- *     'invisible' => array(
- *       'input[name="needs_accommodation"]' => array('checked' => FALSE),
- *     ),
- *   ),
- * );
+ *   '#attributes' => [
+ *     'class' => ['accommodation'],
+ *   ],
+ *   '#states' => [
+ *     'invisible' => [
+ *       'input[name="needs_accommodation"]' => ['checked' => FALSE],
+ *     ],
+ *   ],
+ * ];
  *
- * $form['accommodation']['diet'] = array(
+ * $form['accommodation']['diet'] = [
  *   '#type' => 'textfield',
  *   '#title' => $this->t('Dietary Restrictions'),
- * );
+ * ];
  * @endcode
  *
  * @RenderElement("container")