Skip to content

Commit

Permalink
Update Raygun4PHP dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
redJ4y committed Feb 23, 2023
1 parent 28cbfcb commit 5ac9691
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 17 deletions.
2 changes: 1 addition & 1 deletion vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'Raygun4php\\Tests\\' => array($vendorDir . '/mindscape/raygun4php/tests'),
'Raygun4php\\' => array($vendorDir . '/mindscape/raygun4php/src/Raygun4php'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class ComposerStaticInit33571e35834a0e12729a0f8e938f5a42
),
'Psr\\Http\\Message\\' =>
array (
0 => __DIR__ . '/..' . '/psr/http-message/src',
1 => __DIR__ . '/..' . '/psr/http-factory/src',
0 => __DIR__ . '/..' . '/psr/http-factory/src',
1 => __DIR__ . '/..' . '/psr/http-message/src',
),
'Psr\\Http\\Client\\' =>
array (
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,17 @@
},
{
"name": "mindscape/raygun4php",
"version": "v2.3.0",
"version_normalized": "2.3.0.0",
"version": "v2.3.1",
"version_normalized": "2.3.1.0",
"source": {
"type": "git",
"url": "https://github.com/MindscapeHQ/raygun4php.git",
"reference": "a479ce6be7f31f224893055884afc7b8153191fd"
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/a479ce6be7f31f224893055884afc7b8153191fd",
"reference": "a479ce6be7f31f224893055884afc7b8153191fd",
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
"shasum": ""
},
"require": {
Expand All @@ -369,7 +369,7 @@
"suggest": {
"ext-curl": "*"
},
"time": "2022-09-07T04:14:24+00:00",
"time": "2023-02-22T02:17:58+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -404,7 +404,7 @@
],
"support": {
"issues": "https://github.com/MindscapeHQ/raygun4php/issues",
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.0"
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.1"
},
"install-path": "../mindscape/raygun4php"
},
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'raygun/raygun4wordpress',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -38,9 +38,9 @@
'dev_requirement' => false,
),
'mindscape/raygun4php' => array(
'pretty_version' => 'v2.3.0',
'version' => '2.3.0.0',
'reference' => 'a479ce6be7f31f224893055884afc7b8153191fd',
'pretty_version' => 'v2.3.1',
'version' => '2.3.1.0',
'reference' => 'f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0',
'type' => 'library',
'install_path' => __DIR__ . '/../mindscape/raygun4php',
'aliases' => array(),
Expand Down Expand Up @@ -127,7 +127,7 @@
'raygun/raygun4wordpress' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
2 changes: 2 additions & 0 deletions vendor/mindscape/raygun4php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ function ($errno, $errstr, $errfile, $errline) use ($raygunClient) {
See the [Error Control Operators section on PHP.net](http://php.net/manual/en/language.operators.errorcontrol.php) for more information.

## Changelog
- 2.3.1: Use iconv to convert from ISO-8859-1 instead of utf8_encode
- 2.3.0: Support newer versions of psr/log
- 2.2.1: SetUser method now supports numeric data types for 'user' parameter
- 2.2.0: Capture the file and line number where the exception itself is thrown
- 2.1.1: Fix namespace in Uuid library to prevent composer errors with mixed case package names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RaygunClientMessage
public function __construct()
{
$this->Name = "Raygun4php";
$this->Version = "2.2.1";
$this->Version = "2.3.1";
$this->ClientUrl = "https://github.com/MindscapeHQ/raygun4php";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct()
$utf8_convert_server = function ($value) use (&$utf8_convert_server) {
return is_array($value) ?
array_map($utf8_convert_server, $value) :
iconv('UTF-8', 'UTF-8', utf8_encode($value));
iconv('ISO-8859-1', 'UTF-8', $value);
};

$this->Form = array_map($utf8_convert, $_POST);
Expand Down
15 changes: 15 additions & 0 deletions vendor/mindscape/raygun4php/tests/RaygunClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,19 @@ public function testValidateMessageJsonInTransportObj()
$schemaValidator->validate($data, $this->jsonSchema);
$this->assertTrue($schemaValidator->isValid());
}

/**
* @backupGlobals enabled
*/
public function testServerUtf8Conversion()
{
$_SERVER = [
'a' => 'hello',
'b' => "\xc0\xde",
];
$requestMessage = new RaygunRequestMessage();

$this->assertSame('hello', $requestMessage->Data['a']);
$this->assertSame('ÀÞ', $requestMessage->Data['b']);
}
}

0 comments on commit 5ac9691

Please sign in to comment.