Skip to content

Commit 9a7a93a

Browse files
SystemKeeperbackportbot[bot]
authored andcommitted
fix: Unused parameter for encryptAndSign
fix: Unused parameter for encryptAndSign Signed-off-by: Marcel Müller <marcel-mueller@gmx.de> [skip ci]
1 parent e48db2a commit 9a7a93a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Push.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function pushToDevice(int $id, INotification $notification): void {
296296
}
297297

298298
try {
299-
$payload = json_encode($this->encryptAndSign($userKey->getPrivate(), $device, $id, $notification, $isTalkNotification), JSON_THROW_ON_ERROR);
299+
$payload = json_encode($this->encryptAndSign($userKey->getPrivate(), $device, $id, $notification), JSON_THROW_ON_ERROR);
300300

301301
$proxyServer = rtrim($device['proxyserver'], '/');
302302
if (!isset($this->payloadsToSend[$proxyServer])) {

tests/Unit/PushTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public function testPushToDeviceTalkNotification(array $deviceTypes, bool $isTal
801801

802802
$push->expects($this->exactly(1))
803803
->method('encryptAndSign')
804-
->with($this->anything(), $devices[$pushedDevice], $this->anything(), $this->anything(), $isTalkNotification)
804+
->with($this->anything(), $devices[$pushedDevice], $this->anything(), $this->anything())
805805
->willReturn(['Payload']);
806806

807807
/** @var IClient&MockObject $client */

0 commit comments

Comments
 (0)