Skip to content

Commit 3477da4

Browse files
committed
fix: Don't rewrite POST payload during compile time
The EncryptedPayload class might not be available and compiling doesn't happen in a web request anyway
1 parent 73d5bea commit 3477da4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Classes/Integration/NetlogixIntegration.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ private static function configureScopeForEvent(Event $event, EventHint $hint): v
248248
*/
249249
public static function encryptPostBody(Event $event, EventHint $hint): Event
250250
{
251+
if (Bootstrap::$staticObjectManager instanceof CompileTimeObjectManager) {
252+
return $event;
253+
}
254+
251255
$encryptedPayload = Bootstrap::$staticObjectManager->get(\Netlogix\Sentry\EventProcessor\EncryptedPayload::class);
252256
return $encryptedPayload->rewriteEvent($event, $hint);
253257
}

0 commit comments

Comments
 (0)