Skip to content

Conversation

@Awashorphan4060
Copy link

Improves propagation of the debug flag between Builder and Client so that Guzzle debug output works consistently across nested builder instances.

Ensures expected visibility during local testing and easier troubleshooting without affecting normal runtime behavior.

…nstance()

- fix: preserve debug flag by passing $this->debug to client
- feat: default setDebug() to true when no argument is provided
*
* This is reset to false after the request
*/
public function debug(bool $debug = true): self
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get all of the changes, but this is a rename. What are your thoughts on that?

It was debug in the Builder as that class is more about the human-readable experience, so it has the default & is used as just $builder->debug() as it reads better. Under the hood, the client is setting debug true.

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

Successfully merging this pull request may close these issues.

2 participants