Skip to content

Commit bd4398b

Browse files
Fix 8.4 deprecation notices
1 parent 6a34f5d commit bd4398b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Segment.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ public function getId(): string
196196
}
197197

198198
/**
199-
* @param string $parentId
199+
* @param string|null $parentId
200200
* @return static
201201
*/
202-
public function setParentId(string $parentId = null)
202+
public function setParentId(?string $parentId = null)
203203
{
204204
$this->parentId = $parentId;
205205

src/Trace.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public static function getInstance()
4646
}
4747

4848
/**
49-
* @param string $traceHeader
49+
* @param string|null $traceHeader
5050
* @return static
5151
*/
52-
public function setTraceHeader(string $traceHeader = null)
52+
public function setTraceHeader(?string $traceHeader = null)
5353
{
5454
if ($traceHeader === null) {
5555
return $this;

0 commit comments

Comments
 (0)