From b22a0457aff7260d78f60130e8b32faec20d16fb Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Thu, 16 Oct 2025 09:41:32 +0200 Subject: [PATCH] Timestamp fields return int --- tests/src/Type/data/field-types.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Type/data/field-types.php b/tests/src/Type/data/field-types.php index ee0eba72..4cf048eb 100644 --- a/tests/src/Type/data/field-types.php +++ b/tests/src/Type/data/field-types.php @@ -59,13 +59,13 @@ $changed_field = $node->get('field_changed')->first(); assert($changed_field instanceof ChangedItem); assertType(ChangedItem::class, $changed_field); -assertType('string', $changed_field->value); +assertType('int', $changed_field->value); // CreatedItem. $created_field = $node->get('field_created')->first(); assert($created_field instanceof CreatedItem); assertType(CreatedItem::class, $created_field); -assertType('string', $created_field->value); +assertType('int', $created_field->value); // DecimalItem. $decimal_field = $node->get('field_decimal')->first(); @@ -135,7 +135,7 @@ $timestamp_field = $node->get('field_timestamp')->first(); assert($timestamp_field instanceof TimestampItem); assertType(TimestampItem::class, $timestamp_field); -assertType('string', $timestamp_field->value); +assertType('int', $timestamp_field->value); // UriItem. $uri_field = $node->get('field_uri')->first();