Skip to content

Commit

Permalink
Downgrade php
Browse files Browse the repository at this point in the history
  • Loading branch information
radyakaze committed Nov 22, 2016
1 parent f4c9b1d commit e717cfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Bot
*
* @return array|bool
*/
public static function send(string $action = 'sendMessage', array $data = [])
public static function send($action = 'sendMessage', $data = [])
{
$upload = false;
$actionUpload = ['sendPhoto', 'sendAudio', 'sendDocument', 'sendSticker', 'sendVideo', 'sendVoice'];
Expand Down Expand Up @@ -99,7 +99,7 @@ public static function send(string $action = 'sendMessage', array $data = [])
*
* @return string
*/
public static function answerInlineQuery(array $results, array $options = [])
public static function answerInlineQuery($results, $options = [])
{
if (!empty($options)) {
$data = $options;
Expand All @@ -123,7 +123,7 @@ public static function answerInlineQuery(array $results, array $options = [])
*
* @return string
*/
public static function answerCallbackQuery(string $text, array $options = [])
public static function answerCallbackQuery($text, $options = [])
{
$options['text'] = $text;

Expand Down
8 changes: 4 additions & 4 deletions src/PHPTelebot.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class PHPTelebot
* @param string $token
* @param string $username
*/
public function __construct(string $token, string $username = '')
public function __construct($token, $username = '')
{
// Check php version
if (version_compare(phpversion(), '5.4', '<')) {
Expand All @@ -87,7 +87,7 @@ public function __construct(string $token, string $username = '')
* @param string $command
* @param callable|string $answer
*/
public function cmd(string $command, $answer)
public function cmd($command, $answer)
{
if ($command != '*') {
$this->_command[$command] = $answer;
Expand All @@ -103,7 +103,7 @@ public function cmd(string $command, $answer)
* @param string $types
* @param callable|string $answer
*/
public function on(string $types, $answer)
public function on($types, $answer)
{
$types = explode('|', $types);
foreach ($types as $type) {
Expand All @@ -117,7 +117,7 @@ public function on(string $types, $answer)
* @param string $regex
* @param callable|string $answer
*/
public function regex(string $regex, $answer)
public function regex($regex, $answer)
{
$this->_command['customRegex:'.$regex] = $answer;
}
Expand Down

0 comments on commit e717cfa

Please sign in to comment.