Comments (6)
Also have this problem. Temporary quick fix for me is to use json_encode
on Debug
object instead of type casting to string.
from zendesk_api_client_php.
Hi there @mtk3d,
Thank you for your contribution. Happy you found a way around this.
I can't replicate this issue:
$tickets = $client->tickets()->findAll(); // First page only
$client->getDebug()->lastResponseHeaders;
= [
"Date" => [
"Tue, 30 Apr 2024 22:36:08 GMT",
],
"Content-Type" => [
"application/json; charset=utf-8",
],
// etc..
Could you please provide a more complete example that's easier to reproduce?
from zendesk_api_client_php.
Hi, of course 😄
The problem is when I'm trying to cast Debug object to string. Debug object has _toString()
magic method, so I should be able to cast it to a string like this:
$debugContent = (string) $client->getDebug();
The problem is, that inside _toString()
there is a concatination of lastResponseHeaders
param with a string. In this case, PHP is trying to cast it to the string also, but lastResponseHeaders
contains an array of headers, and it's not possible to directly cast it to a string.
from zendesk_api_client_php.
Just a little update that I don't have an update yet, but we haven't forgotten, please bear with us. This doesn't sound blocking, but let us know if it's a big issue.
from zendesk_api_client_php.
Thanks for update! Yes that's right, it's non-blocking issue
from zendesk_api_client_php.
@mtk3d - can you take a look at the small PR above, please?
from zendesk_api_client_php.
Related Issues (20)
- PHP8 Error: array_merge() does not accept unknown named parameters HOT 1
- php 5.6 Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /var/www/clients/client1/web6/web/vendor/guzzlehttp/guzzle/src/HandlerStack.php on line 47 HOT 1
- Update Packagist with the new version HOT 3
- Unmerged PRs HOT 3
- Okta HOT 2
- Oktane22
- Add comment to ticket HOT 3
- FindAll method Ambiguity in Error Webhooks HOT 3
- No events API support? HOT 2
- Type error: Argument 1 passed to GuzzleHttp\Client::send()
- Allow any PSR-17 and PSR-18 implementation to be used
- How to get the latest tickets created by a customer? HOT 2
- webhook count support not available ? HOT 1
- Repository maintenance status HOT 14
- Problem with updates of users HOT 2
- tickets createMany method implementation HOT 2
- No method called iterator available in Zendesk\API\Resources\Core\Tickets HOT 2
- Testing Slack notification HOT 3
- Test Issue HOT 3
- Another test HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zendesk_api_client_php.