diff --git a/core/lib/Drupal/Core/TypedData/DataDefinition.php b/core/lib/Drupal/Core/TypedData/DataDefinition.php index b9e17f2409..a0206b0e4a 100644 --- a/core/lib/Drupal/Core/TypedData/DataDefinition.php +++ b/core/lib/Drupal/Core/TypedData/DataDefinition.php @@ -363,7 +363,7 @@ public function __sleep() { * @return static * The object itself for chaining. */ - public function setInternal($internal = TRUE) { + public function setInternal($internal) { $this->definition['internal'] = $internal; return $this; } diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestJsonInternalPropertyNormalizerTest.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestJsonInternalPropertyNormalizerTest.php index 4b7fac4567..4585da79b3 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestJsonInternalPropertyNormalizerTest.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityTest/EntityTestJsonInternalPropertyNormalizerTest.php @@ -30,7 +30,7 @@ class EntityTestJsonInternalPropertyNormalizerTest extends EntityTestResourceTes */ protected function getExpectedNormalizedEntity() { $expected = parent::getExpectedNormalizedEntity(); - // The 'internal_value' property in test field type will not be returned in + // The 'internal_value' property in test field type is not exposed in the // normalization because setInternal(FALSE) was not called for this // property. // @see \Drupal\entity_test\Plugin\Field\FieldType\InternalPropertyTestFieldItem::propertyDefinitions