File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ public function getConfigTreeBuilder()
369
369
->scalarNode ('room ' )->end () // hipchat
370
370
->scalarNode ('message_format ' )->defaultValue ('text ' )->end () // hipchat
371
371
->scalarNode ('api_version ' )->defaultNull ()->end () // hipchat
372
- ->scalarNode ('channel ' )->end () // slack & slackwebhook & slackbot
372
+ ->scalarNode ('channel ' )->defaultNull ()-> end () // slack & slackwebhook & slackbot
373
373
->scalarNode ('bot_name ' )->defaultValue ('Monolog ' )->end () // slack & slackwebhook
374
374
->scalarNode ('use_attachment ' )->defaultTrue ()->end () // slack & slackwebhook
375
375
->scalarNode ('use_short_attachment ' )->defaultFalse ()->end () // slack & slackwebhook
@@ -713,8 +713,8 @@ public function getConfigTreeBuilder()
713
713
->thenInvalid ('The token and channel have to be specified to use a SlackHandler ' )
714
714
->end ()
715
715
->validate ()
716
- ->ifTrue (function ($ v ) { return 'slackwebhook ' === $ v ['type ' ] && (empty ($ v ['webhook_url ' ]) || empty ( $ v [ ' channel ' ]) ); })
717
- ->thenInvalid ('The webhook_url and channel have to be specified to use a SlackWebhookHandler ' )
716
+ ->ifTrue (function ($ v ) { return 'slackwebhook ' === $ v ['type ' ] && (empty ($ v ['webhook_url ' ])); })
717
+ ->thenInvalid ('The webhook_url have to be specified to use a SlackWebhookHandler ' )
718
718
->end ()
719
719
->validate ()
720
720
->ifTrue (function ($ v ) { return 'slackbot ' === $ v ['type ' ] && (empty ($ v ['stack_team ' ]) || empty ($ v ['token ' ]) || empty ($ v ['channel ' ])); })
You can’t perform that action at this time.
0 commit comments