Skip to content

Commit 0293f28

Browse files
committed
Update Request::getConstantName method
1 parent eb04cce commit 0293f28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/Request.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,9 @@ protected function getConstantName(int $value) : string
10441044
$constants = \get_defined_constants(true);
10451045
$constants = $constants['curl'];
10461046
foreach ($constants as $name => $v) {
1047+
if (!\str_starts_with($name, 'CURLOPT_')) {
1048+
continue;
1049+
}
10471050
if($v === $value) {
10481051
return $name;
10491052
}

0 commit comments

Comments
 (0)