We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1463c94 commit 289fd17Copy full SHA for 289fd17
src/Entities/Keyboard.php
@@ -125,7 +125,11 @@ protected function createFromParams(): array
125
public function addRow(): Keyboard
126
{
127
if (($new_row = $this->parseRow(func_get_args())) !== null) {
128
- $this->{$this->getKeyboardType()}[] = $new_row;
+ // Workaround for "Indirect modification of overloaded property has no effect" notice in PHP 8.2.
129
+ // https://stackoverflow.com/a/19749730/3757422
130
+ $keyboard = $this->{$this->getKeyboardType()};
131
+ $keyboard[] = $new_row;
132
+ $this->{$this->getKeyboardType()} = $keyboard;
133
}
134
135
return $this;
0 commit comments