Skip to content

Commit 29aa6c0

Browse files
Update rollbar-php to v1.6.2
1 parent 2f0e865 commit 29aa6c0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

vendor/rollbar/rollbar/src/Payload/Notifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class Notifier implements \Serializable
44
{
55
const NAME = "rollbar-php";
6-
const VERSION = "1.5.3";
6+
const VERSION = "1.6.2";
77

88
public static function defaultNotifier()
99
{

vendor/rollbar/rollbar/src/Senders/FluentSender.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ public function send(EncodedPayload $payload, $accessToken)
7676
$this->loadFluentLogger();
7777
}
7878

79-
$success = $this->fluentLogger->post($this->fluentTag, $payload->data());
79+
$scrubbedPayload = $payload->data();
80+
81+
$success = $this->fluentLogger->post($this->fluentTag, $scrubbedPayload);
8082
$status = $success ? 200 : 400;
8183
$info = $success ? 'OK' : 'Bad Request';
8284
$uuid = $scrubbedPayload['data']['uuid'];

vendor/rollbar/rollbar/src/Utilities.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ final class Utilities
44
{
55
public static function isWindows()
66
{
7-
return strpos(strtolower(php_uname('s')), 'win') !== false;
7+
return php_uname('s') == 'Windows NT';
88
}
99

1010
public static function validateString(

vendor/rollbar/rollbar/tests/NotifierTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public function testEncode()
2929
{
3030
$notifier = Notifier::defaultNotifier();
3131
$encoded = json_encode($notifier->serialize());
32-
$this->assertEquals('{"name":"rollbar-php","version":"1.5.3"}', $encoded);
32+
$this->assertEquals('{"name":"rollbar-php","version":"1.6.2"}', $encoded);
3333
}
3434
}

0 commit comments

Comments
 (0)