The visibility should be declared for property $remove_keyboard.
The PSR-2 coding standard requires that all properties in a class have their visibility
explicitly declared. If you declare a property using
classA{var$property;}
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the
PSR-2.
Loading history...
9
$selective;
10
11
/*
12
* Telegram clients will remove the current custom keyboard and display the default letter-keyboard.
13
*
14
* @param boolean $selective Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.