Closed lyucean closed 4 years ago
This is where you need to add array_key_exists ('result', $ this-> updates). Otherwise, with an empty $this->updates, we get: Undefined index: result
array_key_exists ('result', $ this-> updates)
$this->updates
Undefined index: result
On php 7.4, this error now appears.
It's backward compatible ? Can you do a Pull Request ?
It's backward compatible ?
Yes, of course, this is all just checking for a key in an array
Can you do a Pull Request ?
https://github.com/Eleirbag89/TelegramBotPHP/pull/213
This is where you need to add
array_key_exists ('result', $ this-> updates)
. Otherwise, with an empty$this->updates
, we get:Undefined index: result
On php 7.4, this error now appears.