Skip to content

Commit ca9f645

Browse files
committed
PHP5 Compliance
1 parent 323f493 commit ca9f645

File tree

4 files changed

+28
-16
lines changed

4 files changed

+28
-16
lines changed

src/Tag/DebugRequestTag.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
2-
declare(strict_types=1);
3-
42
namespace Jaeger\Symfony\Tag;
53

64
use Jaeger\Tag\StringTag;
75

86
class DebugRequestTag extends StringTag
97
{
10-
public function __construct(string $value)
8+
/**
9+
* DebugRequestTag constructor.
10+
*
11+
* @param string $value
12+
*/
13+
public function __construct($value)
1114
{
12-
parent::__construct('debug.request', $value);
15+
parent::__construct('debug.request', (string)$value);
1316
}
1417
}

src/Tag/TimeMicroTag.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
2-
declare(strict_types=1);
3-
42
namespace Jaeger\Symfony\Tag;
53

64
use Jaeger\Tag\LongTag;
75

86
class TimeMicroTag extends LongTag
97
{
10-
public function __construct(int $value)
8+
/**
9+
* TimeMicroTag constructor.
10+
*
11+
* @param int $value
12+
*/
13+
public function __construct($value)
1114
{
12-
parent::__construct('time.micro', $value);
15+
parent::__construct('time.micro', (int)$value);
1316
}
1417
}

src/Tag/TimeSourceTag.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
2-
declare(strict_types=1);
3-
42
namespace Jaeger\Symfony\Tag;
53

64
use Jaeger\Tag\StringTag;
75

86
class TimeSourceTag extends StringTag
97
{
10-
public function __construct(string $value)
8+
/**
9+
* TimeSourceTag constructor.
10+
*
11+
* @param string $value
12+
*/
13+
public function __construct($value)
1114
{
12-
parent::__construct('time.source', $value);
15+
parent::__construct('time.source', (string)$value);
1316
}
1417
}

src/Tag/TimeValueTag.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
<?php
2-
declare(strict_types=1);
3-
42
namespace Jaeger\Symfony\Tag;
53

64
use Jaeger\Tag\DoubleTag;
75

86
class TimeValueTag extends DoubleTag
97
{
10-
public function __construct(float $value)
8+
/**
9+
* TimeValueTag constructor.
10+
*
11+
* @param float $value
12+
*/
13+
public function __construct($value)
1114
{
12-
parent::__construct('time.value', $value);
15+
parent::__construct('time.value', (float)$value);
1316
}
1417
}

0 commit comments

Comments
 (0)