Skip to content

Commit 7e8e919

Browse files
committed
Fixed deprecation warnings about passing null as parameter
1 parent 36f2e59 commit 7e8e919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public function priority(int $priority)
266266
*/
267267
public function getPriority(): int
268268
{
269-
[$priority] = sscanf($this->getHeaders()->getHeaderBody('X-Priority'), '%[1-5]');
269+
[$priority] = sscanf($this->getHeaders()->getHeaderBody('X-Priority') ?? '', '%[1-5]');
270270

271271
return $priority ?? 3;
272272
}

0 commit comments

Comments
 (0)