Skip to content
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

Stripe_AttachedObject addition to Object.php (lines 146-148) outputs nasty PHP warnings in version 1.9.0 #61

Closed
naomicbush opened this issue Oct 31, 2013 · 0 comments

Comments

@naomicbush
Copy link
Contributor

After these three lines were added in 1.9.0:

if (self::$_nestedUpdatableAttributes->includes($k))
        $this->_values[$k] = Stripe_Object::scopedConstructFrom('Stripe_AttachedObject', $v, $apiKey);
      else

These warnings are now output on the site when I create a customer, update their subscription, and then retrieve their invoices:

Warning: array_keys() expects parameter 1 to be array, null given in /includes/api/lib/Stripe/Object.php on line 134

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /includes/api/lib/Stripe/Object.php on line 134

Warning: Invalid argument supplied for foreach() in /includes/api/lib/Stripe/Object.php on line 136

Warning: Invalid argument supplied for foreach() in /includes/api/lib/Stripe/Object.php on line 142

There are no warnings when the three added lines are removed.

May be related to #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants