Skip to content

Commit 0acd057

Browse files
committed
Fix for situations where service name is not set.
1 parent e7b61e2 commit 0acd057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exceptions/WebRequestException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class WebRequestException extends Exception implements ExceptionWithContext
1818
/** @return string */
1919
public function getServiceName() : string
2020
{
21-
return $this->serviceName;
21+
return $this->serviceName ?? '';
2222
}
2323

2424
/**
@@ -34,7 +34,7 @@ public function setServiceName(string $serviceName) : self
3434
/** @return string */
3535
public function getServiceVersion() : string
3636
{
37-
return $this->serviceVersion;
37+
return $this->serviceVersion ?? '';
3838
}
3939

4040
/**

0 commit comments

Comments
 (0)