Skip to content

Commit 5cc2f46

Browse files
Workaround disabled "var_dump"
1 parent 992d84c commit 5cc2f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpClientTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private static function prepareRequest(?string $method, ?string $url, array $opt
106106
}
107107

108108
// Validate on_progress
109-
if (!\is_callable($onProgress = $options['on_progress'] ?? 'var_dump')) {
109+
if (isset($options['on_progress']) && !\is_callable($onProgress = $options['on_progress'])) {
110110
throw new InvalidArgumentException(sprintf('Option "on_progress" must be callable, "%s" given.', \is_object($onProgress) ? \get_class($onProgress) : \gettype($onProgress)));
111111
}
112112

0 commit comments

Comments
 (0)