File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed 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 @@ -172,7 +172,7 @@ private function setUserValue($user)
172
172
}
173
173
174
174
if (is_object ($ user ) && method_exists ($ user , '__toString ' )) {
175
- $ this ->client ->set_user_data ($ user -> __toString () );
175
+ $ this ->client ->set_user_data (( string ) $ user );
176
176
}
177
177
}
178
178
}
You can’t perform that action at this time.
0 commit comments