diff --git a/src/SNMP.php b/src/SNMP.php index 26933b3..9f770de 100644 --- a/src/SNMP.php +++ b/src/SNMP.php @@ -95,7 +95,7 @@ public function parse(string $result): string | int | bool | null $value = trim(substr($result, strpos($result, ':') + 1)); return match ($type) { - 'STRING', 'OID', 'IpAddress' => trim($value, "\""), + 'STRING', 'OID', 'IpAddress' => trim($value, '"'), 'INTEGER' => is_numeric($value) ? (int) $value : null, 'Timeticks' => (int) substr($value, 1, strrpos($value, ')') - 1), 'Counter32', 'Counter64', 'Gauge32' => (int) $value,