-
Notifications
You must be signed in to change notification settings - Fork 260
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
It doesn't work #3
Comments
It should be something like this. use Zendesk\API\Client as ZendeskAPI; $api_client = new ZendeskAPI($subdomain, $username); |
I'm experiencing this same issue in production, maybe its a php version issue? I'm using 5.3.2. But no @door999mo, the error is thrown on the line I think this is the issue http://stackoverflow.com/questions/217618/construct-vs-sameasclassname-for-constructor-in-php |
Issue #3: Adds compatibility with PHP versions prior to 5.3.3
The fix @joeelizondo contributed was merged on June 5th. I'm going to close this out. Thanks everyone! |
Issue zendesk#3: Adds compatibility with PHP versions prior to 5.3.3
Update GroupsTest.php
when initiating ZendeskAPI object it gives an error
$client = new ZendeskAPI($subdomain, $username);
Here is the error:
Catchable fatal error: Argument 1 passed to Zendesk\API\Search::search() must be an array, object given, called in /Webserver/htdocs/project/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Client.php on line 90 and defined in /Webserver/htdocs/project/vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Search.php on line 13
If I comment $this->search = new Search($this); on the line 90 of the file vendor/zendesk/zendesk_api_client_php/src/Zendesk/API/Client.php it starts to work.
The text was updated successfully, but these errors were encountered: