We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf84371 commit c2183e1Copy full SHA for c2183e1
lib/Providers/Time/HttpTimeProvider.php
@@ -12,19 +12,16 @@
12
*/
13
class HttpTimeProvider implements ITimeProvider
14
{
15
- /** @var array<string, mixed> */
16
- public array $options;
17
-
18
/**
19
* @param array<string, mixed> $options
20
21
public function __construct(
22
public string $url = 'https://google.com',
23
public string $expectedtimeformat = 'D, d M Y H:i:s O+',
24
- ?array $options = null,
+ public ?array $options = null,
25
) {
26
- if ($options === null) {
27
- $options = array(
+ if ($this->options === null) {
+ $this->options = array(
28
'http' => array(
29
'method' => 'HEAD',
30
'follow_location' => false,
@@ -39,7 +36,6 @@ public function __construct(
39
36
),
40
37
);
41
38
}
42
- $this->options = $options;
43
44
45
0 commit comments