-
Notifications
You must be signed in to change notification settings - Fork 93
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
Warning in recurly_resource.php @ line 113 #524
Comments
Hi @tomarnold2. Thanks for reporting. We'll take a look and get back to you. |
Hello again, @tomarnold2! Thanks for bringing this to our attention. This is a legitimate warning and just didn't get noticed in our smoke tests because it was scrolling out of view :/ I've added the appropriate null check in the |
# Changelog ## [Unreleased](https://github.com/recurly/recurly-client-php/tree/HEAD) [Full Changelog](3.4.0...HEAD) **Implemented enhancements:** - Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#527](#527) ([bhelx](https://github.com/bhelx)) **Fixed bugs:** - Warning in recurly\_resource.php @ line 113 [\#524](#524) **Merged pull requests:** - Null checking variable before calling property\_exists to prevent Warning [\#525](#525) ([douglasmiller](https://github.com/douglasmiller)) - Updates array syntax to modern format [\#521](#521) ([douglasmiller](https://github.com/douglasmiller)) - Mon Jul 6 14:54:15 UTC 2020 Upgrade API version v2019-10-10 [\#515](#515) ([douglasmiller](https://github.com/douglasmiller))
[Full Changelog](3.4.0...HEAD) **Implemented enhancements:** - Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#527](#527) ([bhelx](https://github.com/bhelx)) **Fixed bugs:** - Warning in recurly\_resource.php @ line 113 [\#524](#524) **Merged pull requests:** - Null checking variable before calling property\_exists to prevent Warning [\#525](#525) ([douglasmiller](https://github.com/douglasmiller)) - Updates array syntax to modern format [\#521](#521) ([douglasmiller](https://github.com/douglasmiller)) - Mon Jul 6 14:54:15 UTC 2020 Upgrade API version v2019-10-10 [\#515](#515) ([douglasmiller](https://github.com/douglasmiller))
Hi, I'm receiving this warning in the recurly-client-php library (version 3.4.0):
"First parameter must either be an object or the name of an existing class in Recurly\RecurlyResource::Recurly{closure}() (line 113 of C:\xampp\apps\myapp\htdocs\vendor\recurly\recurly-client\lib\recurly\recurly_resource.php"
To Reproduce
Expected behavior
No warning message to be given.
Your Environment
PHP Version 7.4.7
Recurly Lib 3.4.0
XAMPP locally (Windows 10)
Chrome version 84.0.4147.89
It's easy enough for me to suppress the error, but I thought you'd want to know (or, if I'm doing something wrong, I'd appreciate a heads-up what that is so I can fix my code).
Thank you,
Tom
P.S. I tried to get the data to format nicely but this editor is munging it. So I'm just pasting the json encoded below.
$some_data
{"currency":"USD","account":{"code":"uid-66","first_name":"Tom","last_name":"Tester","username":"tom@example.com","email":"tom@example.com","tax_exempt":false,"transaction_type":"moto","address":{"street1":"123 Easy Street","street2":"","city":"Seattle","region":"Washington","postal_code":"98101","country":"US"},"billing_info":{"token_id":"sdptyiFxxxxxxxxxxfKQAQ"}},"subscriptions":[{"plan_code":"my_plan_recur_12","quantity":1,"custom_fields":[{"name":"id","value":"54321"},{"name":"id_user","value":"66"},{"name":"sku_nid","value":"121212 \/ PREMIUM_RENEW_012"}]}],"transaction_type":"moto"}
The text was updated successfully, but these errors were encountered: