Skip to content

Commit 9b6ef37

Browse files
authored
Merge pull request #1176 from maglnet/bugfix-send-warnings-to-log
appwrite/sdk-for-php#44 - write warnings to error log instead of stdout
2 parents d5a9f1c + d59921a commit 9b6ef37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/php/src/Client.php.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class Client
189189
$warnings = $responseHeaders['x-{{spec.title | caseLower}}-warning'] ?? '';
190190
if ($warnings) {
191191
foreach(explode(';', $warnings) as $warning) {
192-
echo 'Warning: ' . $warning . PHP_EOL;
192+
\trigger_error($warning, E_USER_WARNING);
193193
}
194194
}
195195

0 commit comments

Comments
 (0)