Skip to content

Commit c9e6eaf

Browse files
committed
fix: replace empty() with strict isset/bool check to satisfy PHPStan
1 parent 7622dfa commit c9e6eaf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/CURLRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ private function applyResponseOptions(array $curlOptions, array $config): array
783783
*/
784784
private function applyProtocolOptions(array $curlOptions, array $config): array
785785
{
786-
if (empty($config['version'])) {
786+
if (! isset($config['version']) || (bool) $config['version'] === false) {
787787
return $curlOptions;
788788
}
789789

0 commit comments

Comments
 (0)