Closed alupuleasa closed 5 years ago
Hi @alupuleasa
thank you for this suggestion. Your'e welcome to patch this in a pull request. I would be pleased to review and apply it.
Regards Steven
Hi @stevenklar I've made a pull request.
Thank you, Andrei
Merged in Release 2.0.6 - Thank you for the contribution. ;-)
Hello,
Function
getProperty()
fromlaravel-amqp/src/Context.php
on line 63 returns null whenarray_key_exists
returns false . I suggest to modify:return array_key_exists($key, $this->properties) ? $this->properties[$key] : null;
toreturn array_key_exists($key, $this->properties) ? $this->properties[$key] : [];
to avoid
array_key_exists() expects parameter 2 to be array, null given in Context.php line 76