$this->values =
[];
unset($this->path,
$this->cursor,
$this->lineno,
$this->data,
$this->end
);
} } private function lexVarname(): string
{ // var name + optional export
if (!
preg_match('/(export[ \t]++)?('.self::VARNAME_REGEX.')/A',
$this->data,
$matches, 0,
$this->cursor
)) { throw $this->
createFormatException('Invalid character in variable name'
);
} $this->
moveCursor($matches[0
]);
if ($this->cursor ===
$this->end || "\n" ===
$this->data
[$this->cursor
] || '#' ===
$this->data
[$this->cursor
]) { if ($matches[1
]) { throw $this->
createFormatException('Unable to unset an environment variable'
);
} throw $this->
createFormatException('Missing = in the environment variable declaration'
);
} if (' ' ===
$this->data
[$this->cursor
] || "\t" ===
$this->data
[$this->cursor
]) { throw $this->
createFormatException('Whitespace characters are not supported after the variable name'
);
}