Skip to content

Commit

Permalink
Sentry updated to 3.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Shishkov authored and CookiesEater committed Oct 22, 2020
1 parent a891dd2 commit f7ecf48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ return [
// User ID and IP will be added by logger automatically
'username' => $identity->username,
'email' => $identity->email,
], true); // Don't forget to set second param of setUser to true for merging data
]);
});
}

Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"type": "yii2-extension",
"license": "MIT",
"require": {
"php": "^7.1",
"php": "^7.2",
"yiisoft/yii2": "^2.0",
"sentry/sdk": "^2.0"
"sentry/sdk": "^3.0"
},
"require-dev": {
"codeception/codeception": "^3.0"
"codeception/codeception": "^4.0",
"codeception/module-yii2": "^1.1",
"codeception/module-asserts": "^1.3"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/SentryTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function export()

$data = $this->runExtraCallback($text, $data);

$scope->setUser($data['userData'], true);
$scope->setUser($data['userData']);
foreach ($data['extra'] as $key => $value) {
$scope->setExtra((string) $key, $value);
}
Expand Down

0 comments on commit f7ecf48

Please sign in to comment.