php.vim
php.vim copied to clipboard
Highlight variable on variables "$$"
https://www.php.net/manual/en/language.variables.variable.php
Can you elaborate with some examples?
@StanAngeloff
...
if (!is_string($output)) {
$$output = $this->handleException(new \UnexpectedValueException(sprintf(
'Value must be type of string, "%s" returned', gettype($output)
)));
if (is_a($$output, '\Whoops\Run')) {
$$output->handleException(new \UnexpectedValueException(sprintf(
'Value must be type of string, "%s" returned', gettype($output)
)));
}
}
echo $output ?? $$output;