Skip to content

Commit 38480a2

Browse files
committed
feat: Do not report deprecations of sync actions
1 parent 5f511b5 commit 38480a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BaseComponent.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ public function execute(): void
200200
return;
201201
}
202202

203+
// sync actions must write valid JSON directly to output
204+
// do not report deprecations to not break the output
205+
error_reporting(error_reporting() & ~E_USER_DEPRECATED & ~E_DEPRECATED);
206+
203207
$action = $this->getConfig()->getAction();
204208
$syncActions = $this->getSyncActions();
205209
if (array_key_exists($action, $syncActions)) {

0 commit comments

Comments
 (0)