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 3131 },
3232 "require-dev" : {
3333 "friendsofphp/php-cs-fixer" : " ^2.5" ,
34+ "phpstan/phpstan" : " ^0.9.1" ,
3435 "phpunit/phpunit" : " ^5.7|^6.0" ,
35- "scrutinizer/ocular" : " ^1.4"
36+ "scrutinizer/ocular" : " ^1.4" ,
37+ "symfony/expression-language" : " ^3.4"
3638 },
3739 "autoload" : {
3840 "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 66use Sentry \SentryBundle \EventListener \ExceptionListener ;
77use Sentry \SentryBundle \EventListener \SentryExceptionListenerInterface ;
88use Sentry \SentryBundle \SentrySymfonyClient ;
9+ use Symfony \Component \Config \Definition \Builder \ArrayNodeDefinition ;
10+ use Symfony \Component \Config \Definition \Builder \NodeDefinition ;
911use Symfony \Component \Config \Definition \Builder \TreeBuilder ;
1012use Symfony \Component \Config \Definition \ConfigurationInterface ;
1113use Symfony \Component \HttpKernel \Exception \HttpExceptionInterface ;
@@ -25,6 +27,7 @@ class Configuration implements ConfigurationInterface
2527 public function getConfigTreeBuilder ()
2628 {
2729 $ treeBuilder = new TreeBuilder ();
30+ /** @var ArrayNodeDefinition $rootNode */
2831 $ rootNode = $ treeBuilder ->root ('sentry ' );
2932
3033 // Basic Sentry configuration
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ private function setUserValue($user)
171171 }
172172
173173 if (is_object ($ user ) && method_exists ($ user , '__toString ' )) {
174- $ this ->client ->set_user_data ($ user -> __toString () );
174+ $ this ->client ->set_user_data (( string ) $ user );
175175 }
176176 }
177177}
You can’t perform that action at this time.
0 commit comments