Skip to content

Commit a2d6c99

Browse files
committed
📦 Safe property types - property can be uninitialized. Explicitly mention possible return null
1 parent 86bdeae commit a2d6c99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Collector/Profile.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
*/
1414
final class Profile
1515
{
16-
private string $request;
16+
private ?string $request = null;
1717

18-
private string $response;
18+
private ?string $response = null;
1919

2020
private bool $failed = false;
2121

@@ -32,7 +32,7 @@ public function getPlugin()
3232
}
3333

3434
/**
35-
* @return string
35+
* @return string|null
3636
*/
3737
public function getRequest()
3838
{
@@ -48,7 +48,7 @@ public function setRequest($request)
4848
}
4949

5050
/**
51-
* @return string
51+
* @return string|null
5252
*/
5353
public function getResponse()
5454
{

0 commit comments

Comments
 (0)