From fde8508dc72c20f88b09d20f2a3f85dff5643523 Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Wed, 13 Sep 2023 15:42:56 +0200 Subject: [PATCH] Use EntityId::getSerialization() instead of serialize() Bug: T345856 --- .../ItemPropertiesToStrings/ItemPropertiesToStrings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UseCases/ItemPropertiesToStrings/ItemPropertiesToStrings.php b/src/UseCases/ItemPropertiesToStrings/ItemPropertiesToStrings.php index 538b76d..00cc34c 100644 --- a/src/UseCases/ItemPropertiesToStrings/ItemPropertiesToStrings.php +++ b/src/UseCases/ItemPropertiesToStrings/ItemPropertiesToStrings.php @@ -70,7 +70,7 @@ private function changePropertyType( PropertyId $propertyId ): void { } if ( $property->getDataTypeId() !== self::ITEM_PROPERTY_TYPE ) { - throw new \RuntimeException( $propertyId->serialize() . ' has incorrect data type "' . $property->getDataTypeId() . '"' ); + throw new \RuntimeException( $propertyId->getSerialization() . ' has incorrect data type "' . $property->getDataTypeId() . '"' ); } $this->presenter->presentChangingPropertyType( $propertyId, $property->getDataTypeId(), self::STRING_PROPERTY_TYPE );