array_key_exists() expects parameter 2 to be array, null given in deploy.php on line 285

Issue #10 resolved
Luke Spragg created an issue

This error happens if a branch is now specified using $DEPLOY_BRANCH = array(). The error went away as soon as I specified it, though it shouldn't be required as $deployBranch should be used if it isn't specified as per the config documentation. This wasn't an issue before the last few commits.

Seems to be caused by: https://bitbucket.org/alixandru/bitbucket-sync/commits/568850f30f157d620879ce35b77e0637fe0cec40?at=master

Comments (4)

  1. Alexandru Lixandru repo owner

    Right, there was a spot where I was not checking $DEPLOY_BRANCH to make sure it's not null. I corrected it. Thanks for pointing this out!

  2. Log in to comment