Skip to content

Commit bad78b5

Browse files
committed
Fix nullable type hints
1 parent d9bc19e commit bad78b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Tracing/HttpClient/TraceableResponseForV5.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class TraceableResponseForV5 extends AbstractTraceableResponse implements
1616
*
1717
* @return mixed
1818
*/
19-
public function getInfo(string $type = null)
19+
public function getInfo(?string $type = null)
2020
{
2121
return $this->response->getInfo($type);
2222
}

tests/End2End/App/Controller/TracingController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TracingController
2121
*/
2222
private $connection;
2323

24-
public function __construct(HubInterface $hub, Connection $connection = null)
24+
public function __construct(HubInterface $hub, ?Connection $connection = null)
2525
{
2626
$this->hub = $hub;
2727
$this->connection = $connection;

0 commit comments

Comments
 (0)