Skip to content

rename symbol error #242

@danny-su

Description

@danny-su

rename symbol '$headers' error

<?php

$method = $_SERVER['REQUEST_METHOD'];
$uri = $_SERVER['REQUEST_URI'];

$headers = array();
foreach ($_SERVER as $key => $value) {
    if (strpos($key, 'HTTP_') == 0 && strlen($key) > 5) {
        $header = str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, 5)))));
        $headers[$header] = $value;
    }
}
[Error - 11:12:45 AM] Request textDocument/rename failed.
  Message:  Arg_ParamName_Name, newValue
  Code: 101 

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions