Skip to content

Commit f7ecf48

Browse files
Alexey ShishkovCookiesEater
Alexey Shishkov
authored andcommitted
Sentry updated to 3.0 version
1 parent a891dd2 commit f7ecf48

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ return [
105105
// User ID and IP will be added by logger automatically
106106
'username' => $identity->username,
107107
'email' => $identity->email,
108-
], true); // Don't forget to set second param of setUser to true for merging data
108+
]);
109109
});
110110
}
111111

composer.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
"type": "yii2-extension",
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.1",
11+
"php": "^7.2",
1212
"yiisoft/yii2": "^2.0",
13-
"sentry/sdk": "^2.0"
13+
"sentry/sdk": "^3.0"
1414
},
1515
"require-dev": {
16-
"codeception/codeception": "^3.0"
16+
"codeception/codeception": "^4.0",
17+
"codeception/module-yii2": "^1.1",
18+
"codeception/module-asserts": "^1.3"
1719
},
1820
"autoload": {
1921
"psr-4": {

src/SentryTarget.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function export()
136136

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

139-
$scope->setUser($data['userData'], true);
139+
$scope->setUser($data['userData']);
140140
foreach ($data['extra'] as $key => $value) {
141141
$scope->setExtra((string) $key, $value);
142142
}

0 commit comments

Comments
 (0)