diff --git a/core/lib/Drupal/Core/TypedData/DataDefinition.php b/core/lib/Drupal/Core/TypedData/DataDefinition.php index 4bd9e89..9d036a2 100644 --- a/core/lib/Drupal/Core/TypedData/DataDefinition.php +++ b/core/lib/Drupal/Core/TypedData/DataDefinition.php @@ -37,7 +37,7 @@ public static function create($type) { * {@inheritdoc} */ public static function createFromDataType($type) { - return self::$type($type); + return self::create($type); } /** diff --git a/core/modules/comment/lib/Drupal/comment/CommentFormController.php b/core/modules/comment/lib/Drupal/comment/CommentFormController.php index 8819e95..cb0bd45 100644 --- a/core/modules/comment/lib/Drupal/comment/CommentFormController.php +++ b/core/modules/comment/lib/Drupal/comment/CommentFormController.php @@ -226,7 +226,7 @@ public function form(array $form, array &$form_state) { // Add internal comment properties. $original = $comment->getUntranslated(); foreach (array('cid', 'pid', 'entity_id', 'entity_type', 'field_id', 'uid', 'langcode') as $key) { - $key_name = key($comment->$key->first()->getFieldDefinition()->getPropertyDefinitions()); + $key_name = key($comment->$key->getFieldDefinition()->getPropertyDefinitions()); $form[$key] = array('#type' => 'value', '#value' => $original->$key->{$key_name}); } diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php old mode 100644 new mode 100755