From f09173d6100a0fd802b666b8a00c0bd2a1b472a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Tue, 6 Oct 2020 09:40:27 +0200 Subject: [PATCH] Make the PayloadSerializerInterface interface part of the public API (#1110) --- UPGRADE-3.0.md | 2 +- src/Serializer/PayloadSerializerInterface.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index be8111286..028903f2c 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -104,7 +104,7 @@ - Renamed the `Event::getServerOsContext()` method to `Event::getOsContext()` - The signature of the `Scope::setUser()` method changed to accept a plain array - Removed the `FlushableClientInterface` and `ClosableTransportInterface` interfaces. Their methods have been moved to the corresponding `ClientInterface` and `TransportInterface` interfaces -- Removed the `Event::toArray()` and `Event::jsonSerialize()` methods +- Removed the `Event::toArray()` and `Event::jsonSerialize()` methods, use `PayloadSerializerInterface::serialize()` instead - Removed the `Breadcrumb::toArray()` and `Breadcrumb::jsonSerialize()` methods - Removed the `Frame::toArray()` and `Frame::jsonSerialize()` methods - Removed the `Stacktrace::toArray()` and `Stacktrace::jsonSerialize()` methods diff --git a/src/Serializer/PayloadSerializerInterface.php b/src/Serializer/PayloadSerializerInterface.php index f1cabf15a..abb2364c1 100644 --- a/src/Serializer/PayloadSerializerInterface.php +++ b/src/Serializer/PayloadSerializerInterface.php @@ -9,8 +9,6 @@ /** * This interface defines the contract for the classes willing to serialize an * event object to a format suitable for sending over the wire to Sentry. - * - * @internal */ interface PayloadSerializerInterface {