remove redundant assignment, use shorthard for nullable type

This commit is contained in:
Mark Magyar
2023-05-27 21:43:04 +02:00
parent d4f6aa1ee6
commit ab51d16de7
+1 -3
View File
@@ -21,10 +21,8 @@ class HttpTimeProvider implements ITimeProvider
public function __construct(
public string $url = 'https://google.com',
public string $expectedtimeformat = 'D, d M Y H:i:s O+',
array|null $options = null,
?array $options = null,
) {
$this->url = $url;
$this->expectedtimeformat = $expectedtimeformat;
if ($options === null) {
$options = array(
'http' => array(