Skip to content

Commit f777b2b

Browse files
authored
Merge pull request #177 from srjlewis/master
Compatability with php 8.4
2 parents 4dd7a9d + 37ec590 commit f777b2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Payload/Alert.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function getBody()
177177
* @param string|null $value
178178
* @return Alert
179179
*/
180-
public function setTitleLocKey(string $value = null): Alert
180+
public function setTitleLocKey(?string $value = null): Alert
181181
{
182182
$this->titleLocKey = $value;
183183

@@ -200,7 +200,7 @@ public function getTitleLocKey()
200200
* @param array|null $value
201201
* @return Alert
202202
*/
203-
public function setTitleLocArgs(array $value = null): Alert
203+
public function setTitleLocArgs(?array $value = null): Alert
204204
{
205205
$this->titleLocArgs = $value;
206206

@@ -223,7 +223,7 @@ public function getTitleLocArgs()
223223
* @param string|null $value
224224
* @return Alert
225225
*/
226-
public function setActionLocKey(string $value = null): Alert
226+
public function setActionLocKey(?string $value = null): Alert
227227
{
228228
$this->actionLocKey = $value;
229229

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Response implements ApnsResponseInterface
148148
* @param string $body
149149
* @param string $deviceToken
150150
*/
151-
public function __construct(int $statusCode, string $headers, string $body, string $deviceToken = null)
151+
public function __construct(int $statusCode, string $headers, string $body, ?string $deviceToken = null)
152152
{
153153
$this->statusCode = $statusCode;
154154
$this->apnsId = self::fetchApnsId($headers);

0 commit comments

Comments
 (0)