Skip to content

Commit

Permalink
Default arguments must be string
Browse files Browse the repository at this point in the history
  • Loading branch information
gahlawat committed Aug 2, 2015
1 parent 379f49f commit 65dc449
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gahlawat/Slack/Slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
use Log;

class Slack {
public function send( $message, $username = config('slack.default_username'), $emoji = config('slack.default_emoji') ) {

public function send( $message, $username = "config('slack.default_username')", $emoji = "config('slack.default_emoji')" ) {

$sendData = [
'text' => $message,
Expand All @@ -29,4 +30,5 @@ public function send( $message, $username = config('slack.default_username'), $e
Log::error('Slack incoming webhook error');
}
}

}

0 comments on commit 65dc449

Please sign in to comment.