File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
"require-dev" : {
33
33
"friendsofphp/php-cs-fixer" : " ^2.5" ,
34
+ "phpstan/phpstan" : " ^0.9.1" ,
34
35
"phpunit/phpunit" : " ^5.7|^6.0" ,
35
- "scrutinizer/ocular" : " ^1.4"
36
+ "scrutinizer/ocular" : " ^1.4" ,
37
+ "symfony/expression-language" : " ^3.4"
36
38
},
37
39
"autoload" : {
38
40
"psr-4" : {
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ ignoreErrors :
3
+ - '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::/'
4
+ - '/Calling method \w+ on possibly null value of type Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface|null/'
Original file line number Diff line number Diff line change 6
6
use Sentry \SentryBundle \EventListener \ExceptionListener ;
7
7
use Sentry \SentryBundle \EventListener \SentryExceptionListenerInterface ;
8
8
use Sentry \SentryBundle \SentrySymfonyClient ;
9
+ use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
10
+ use Symfony \Component \Config \Definition \Builder \NodeDefinition ;
9
11
use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
10
12
use Symfony \Component \Config \Definition \ConfigurationInterface ;
11
13
use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface ;
@@ -25,6 +27,7 @@ class Configuration implements ConfigurationInterface
25
27
public function getConfigTreeBuilder ()
26
28
{
27
29
$ treeBuilder = new TreeBuilder ();
30
+ /** @var ArrayNodeDefinition $rootNode */
28
31
$ rootNode = $ treeBuilder ->root ('sentry ' );
29
32
30
33
// Basic Sentry configuration
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ private function setUserValue($user)
171
171
}
172
172
173
173
if (is_object ($ user ) && method_exists ($ user , '__toString ' )) {
174
- $ this ->client ->set_user_data ($ user -> __toString () );
174
+ $ this ->client ->set_user_data (( string ) $ user );
175
175
}
176
176
}
177
177
}
You can’t perform that action at this time.
0 commit comments