diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php index e320947..2f69de3 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -227,8 +227,6 @@ protected function getCastedValueFromFieldItemList(FieldItemListInterface $field * @throws \Symfony\Component\HttpKernel\Exception\HttpException */ public function patch(EntityInterface $original_entity, EntityInterface $entity = NULL) { - /** @var \Drupal\Core\Entity\FieldableEntityInterface|\Drupal\Core\Entity\EntityInterface $original_entity */ - /** @var \Drupal\Core\Entity\FieldableEntityInterface|\Drupal\Core\Entity\EntityInterface $entity */ if ($entity == NULL) { throw new BadRequestHttpException('No entity content received.'); } diff --git a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php index 973f5b9..7c5cc43 100644 --- a/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php +++ b/core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php @@ -375,7 +375,7 @@ public function testGet() { // fields does not matter (at least not yet). That's why we only compare the // normalized entity with the decoded response: it's comparing PHP arrays // instead of strings. - $this->assertEquals($this->getExpectedNormalizedEntity(), $this->serializer->decode((string) $response->getBody(), static::$format)); + $this->assertSame($this->getExpectedNormalizedEntity(), $this->serializer->decode((string) $response->getBody(), static::$format)); // Not only assert the normalization, also assert deserialization of the // response results in the expected object. $unserialized = $this->serializer->deserialize((string) $response->getBody(), get_class($this->entity), static::$format);