Skip to content

Commit ab51d16

Browse files
committed
remove redundant assignment, use shorthard for nullable type
1 parent d4f6aa1 commit ab51d16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Providers/Time/HttpTimeProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ class HttpTimeProvider implements ITimeProvider
2121
public function __construct(
2222
public string $url = 'https://google.com',
2323
public string $expectedtimeformat = 'D, d M Y H:i:s O+',
24-
array|null $options = null,
24+
?array $options = null,
2525
) {
26-
$this->url = $url;
27-
$this->expectedtimeformat = $expectedtimeformat;
2826
if ($options === null) {
2927
$options = array(
3028
'http' => array(

0 commit comments

Comments
 (0)