-
Notifications
You must be signed in to change notification settings - Fork 439
TypeError: array_key_exists() expects parameter 2 to be array, null given #833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This?
Please confirm which version on |
This is what I'm getting |
I've looked through the code and yeah, it seems that this particular array was simply not initialized :/ On your local copy you can simply initialize it - in constructor or as part of property declaration - and see if it helps and the library works. I'm not familiar with this code so I can't say for sure for myself. public function __construct(AmqpContext $context, bool $heartbeatOnTick)
{
$this->subscribers = []; // <--- Here
$this->context = $context;
$this->heartbeatOnTick = $heartbeatOnTick;
} If it's all that is required and it works properly after that, I'll provide a PR for you. |
Thank you |
TypeError: array_key_exists() expects parameter 2 to be array, null given
/vendor/enqueue/amqp-lib/AmqpSubscriptionConsumer.php:98
The text was updated successfully, but these errors were encountered: