bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.56k stars 92 forks source link

Support quick fix importing for classes with static methods and properties #2899

Closed Iaotle closed 2 weeks ago

Iaotle commented 3 weeks ago

Feature description or problem with existing feature Currently, there are no import quick fixes offered for classes that use a static method or property: image image

Once the static access is removed the import suggestion appears: image image

Describe the solution you'd like A quick fix import option should appear regardless of whether or not :: is present.

bmewburn commented 3 weeks ago

Can you give a code example? I'm not able to reproduce this. Quick fixes show for me. Screenshot from 2024-06-12 08-29-23

Iaotle commented 2 weeks ago

@bmewburn this is an issue within classes (your example should work):

RunWorker.php:

<?php

namespace App\Jobs;

class RunWorker {

    public function __construct()
    {
        // 
    }

    public function handle()
    {
        // 
    }
    public static function dispatchForReplication(string $runtype) {
        return $runtype . ' dispatched';
    }
}

and SomeExampleFile.php:

<?php

namespace App\SomethingElse;
RunWorker::class;

class SomeExampleFile {

    public function __construct()
    {
        // 

        RunWorker::dispatchForReplication('some type');
    }

    public function handle()
    {
        // 
    }
}

image

I am running WSL, so it could be related to that? I tried your example and it still doesn't detect it for me.

Iaotle commented 2 weeks ago

trace from intelephense log (opened both examples to try the quick fix a few times):

[Trace - 1:10:32 PM] Sending request 'initialize - (0)'.
Params: {
    "processId": 22152,
    "clientInfo": {
        "name": "Visual Studio Code",
        "version": "1.90.1"
    },
    "locale": "en",
    "rootPath": "c:\\Users\\Vadim\\Desktop\\intelephense_bug",
    "rootUri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
                "failureHandling": "textOnlyTransactional",
                "normalizesLineEndings": true,
                "changeAnnotationSupport": {
                    "groupsOnLabel": true
                }
            },
            "configuration": true,
            "didChangeWatchedFiles": {
                "dynamicRegistration": true,
                "relativePatternSupport": true
            },
            "symbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                },
                "resolveSupport": {
                    "properties": [
                        "location.range"
                    ]
                }
            },
            "codeLens": {
                "refreshSupport": true
            },
            "executeCommand": {
                "dynamicRegistration": true
            },
            "didChangeConfiguration": {
                "dynamicRegistration": true
            },
            "workspaceFolders": true,
            "semanticTokens": {
                "refreshSupport": true
            },
            "fileOperations": {
                "dynamicRegistration": true,
                "didCreate": true,
                "didRename": true,
                "didDelete": true,
                "willCreate": true,
                "willRename": true,
                "willDelete": true
            },
            "inlineValue": {
                "refreshSupport": true
            },
            "inlayHint": {
                "refreshSupport": true
            },
            "diagnostics": {
                "refreshSupport": true
            }
        },
        "textDocument": {
            "publishDiagnostics": {
                "relatedInformation": true,
                "versionSupport": false,
                "tagSupport": {
                    "valueSet": [
                        1,
                        2
                    ]
                },
                "codeDescriptionSupport": true,
                "dataSupport": true
            },
            "synchronization": {
                "dynamicRegistration": true,
                "willSave": true,
                "willSaveWaitUntil": true,
                "didSave": true
            },
            "completion": {
                "dynamicRegistration": true,
                "contextSupport": true,
                "completionItem": {
                    "snippetSupport": true,
                    "commitCharactersSupport": true,
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "deprecatedSupport": true,
                    "preselectSupport": true,
                    "tagSupport": {
                        "valueSet": [
                            1
                        ]
                    },
                    "insertReplaceSupport": true,
                    "resolveSupport": {
                        "properties": [
                            "documentation",
                            "detail",
                            "additionalTextEdits"
                        ]
                    },
                    "insertTextModeSupport": {
                        "valueSet": [
                            1,
                            2
                        ]
                    },
                    "labelDetailsSupport": true
                },
                "insertTextMode": 2,
                "completionItemKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25
                    ]
                },
                "completionList": {
                    "itemDefaults": [
                        "commitCharacters",
                        "editRange",
                        "insertTextFormat",
                        "insertTextMode",
                        "data"
                    ]
                }
            },
            "hover": {
                "dynamicRegistration": true,
                "contentFormat": [
                    "markdown",
                    "plaintext"
                ]
            },
            "signatureHelp": {
                "dynamicRegistration": true,
                "signatureInformation": {
                    "documentationFormat": [
                        "markdown",
                        "plaintext"
                    ],
                    "parameterInformation": {
                        "labelOffsetSupport": true
                    },
                    "activeParameterSupport": true
                },
                "contextSupport": true
            },
            "definition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "references": {
                "dynamicRegistration": true
            },
            "documentHighlight": {
                "dynamicRegistration": true
            },
            "documentSymbol": {
                "dynamicRegistration": true,
                "symbolKind": {
                    "valueSet": [
                        1,
                        2,
                        3,
                        4,
                        5,
                        6,
                        7,
                        8,
                        9,
                        10,
                        11,
                        12,
                        13,
                        14,
                        15,
                        16,
                        17,
                        18,
                        19,
                        20,
                        21,
                        22,
                        23,
                        24,
                        25,
                        26
                    ]
                },
                "hierarchicalDocumentSymbolSupport": true,
                "tagSupport": {
                    "valueSet": [
                        1
                    ]
                },
                "labelSupport": true
            },
            "codeAction": {
                "dynamicRegistration": true,
                "isPreferredSupport": true,
                "disabledSupport": true,
                "dataSupport": true,
                "resolveSupport": {
                    "properties": [
                        "edit"
                    ]
                },
                "codeActionLiteralSupport": {
                    "codeActionKind": {
                        "valueSet": [
                            "",
                            "quickfix",
                            "refactor",
                            "refactor.extract",
                            "refactor.inline",
                            "refactor.rewrite",
                            "source",
                            "source.organizeImports"
                        ]
                    }
                },
                "honorsChangeAnnotations": true
            },
            "codeLens": {
                "dynamicRegistration": true
            },
            "formatting": {
                "dynamicRegistration": true
            },
            "rangeFormatting": {
                "dynamicRegistration": true,
                "rangesSupport": true
            },
            "onTypeFormatting": {
                "dynamicRegistration": true
            },
            "rename": {
                "dynamicRegistration": true,
                "prepareSupport": true,
                "prepareSupportDefaultBehavior": 1,
                "honorsChangeAnnotations": true
            },
            "documentLink": {
                "dynamicRegistration": true,
                "tooltipSupport": true
            },
            "typeDefinition": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "implementation": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "colorProvider": {
                "dynamicRegistration": true
            },
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true,
                "foldingRangeKind": {
                    "valueSet": [
                        "comment",
                        "imports",
                        "region"
                    ]
                },
                "foldingRange": {
                    "collapsedText": false
                }
            },
            "declaration": {
                "dynamicRegistration": true,
                "linkSupport": true
            },
            "selectionRange": {
                "dynamicRegistration": true
            },
            "callHierarchy": {
                "dynamicRegistration": true
            },
            "semanticTokens": {
                "dynamicRegistration": true,
                "tokenTypes": [
                    "namespace",
                    "type",
                    "class",
                    "enum",
                    "interface",
                    "struct",
                    "typeParameter",
                    "parameter",
                    "variable",
                    "property",
                    "enumMember",
                    "event",
                    "function",
                    "method",
                    "macro",
                    "keyword",
                    "modifier",
                    "comment",
                    "string",
                    "number",
                    "regexp",
                    "operator",
                    "decorator"
                ],
                "tokenModifiers": [
                    "declaration",
                    "definition",
                    "readonly",
                    "static",
                    "deprecated",
                    "abstract",
                    "async",
                    "modification",
                    "documentation",
                    "defaultLibrary"
                ],
                "formats": [
                    "relative"
                ],
                "requests": {
                    "range": true,
                    "full": {
                        "delta": true
                    }
                },
                "multilineTokenSupport": false,
                "overlappingTokenSupport": false,
                "serverCancelSupport": true,
                "augmentsSyntaxTokens": true
            },
            "linkedEditingRange": {
                "dynamicRegistration": true
            },
            "typeHierarchy": {
                "dynamicRegistration": true
            },
            "inlineValue": {
                "dynamicRegistration": true
            },
            "inlayHint": {
                "dynamicRegistration": true,
                "resolveSupport": {
                    "properties": [
                        "tooltip",
                        "textEdits",
                        "label.tooltip",
                        "label.location",
                        "label.command"
                    ]
                }
            },
            "diagnostic": {
                "dynamicRegistration": true,
                "relatedDocumentSupport": false
            }
        },
        "window": {
            "showMessage": {
                "messageActionItem": {
                    "additionalPropertiesSupport": true
                }
            },
            "showDocument": {
                "support": true
            },
            "workDoneProgress": true
        },
        "general": {
            "staleRequestSupport": {
                "cancel": true,
                "retryOnContentModified": [
                    "textDocument/semanticTokens/full",
                    "textDocument/semanticTokens/range",
                    "textDocument/semanticTokens/full/delta"
                ]
            },
            "regularExpressions": {
                "engine": "ECMAScript",
                "version": "ES2020"
            },
            "markdown": {
                "parser": "marked",
                "version": "1.1.0"
            },
            "positionEncodings": [
                "utf-16"
            ]
        },
        "notebookDocument": {
            "synchronization": {
                "dynamicRegistration": true,
                "executionSummarySupport": true
            }
        }
    },
    "initializationOptions": {
        "storagePath": "c:\\Users\\Vadim\\AppData\\Roaming\\Code\\User\\workspaceStorage\\1605696c08589babd57788929a5a170b\\bmewburn.vscode-intelephense-client",
        "clearCache": false,
        "globalStoragePath": "c:\\Users\\Vadim\\AppData\\Roaming\\Code\\User\\globalStorage\\bmewburn.vscode-intelephense-client",
        "isVscode": true
    },
    "trace": "verbose",
    "workspaceFolders": [
        {
            "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug",
            "name": "intelephense_bug"
        }
    ]
}

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Initialising intelephense 1.10.4"
}

[Info  - 1:10:33 PM] Initialising intelephense 1.10.4
[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Reading state from c:\\Users\\Vadim\\AppData\\Roaming\\Code\\User\\workspaceStorage\\1605696c08589babd57788929a5a170b\\bmewburn.vscode-intelephense-client\\35da00a."
}

[Info  - 1:10:33 PM] Reading state from c:\Users\Vadim\AppData\Roaming\Code\User\workspaceStorage\1605696c08589babd57788929a5a170b\bmewburn.vscode-intelephense-client\35da00a.
[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Initialised in 106 ms"
}

[Info  - 1:10:33 PM] Initialised in 106 ms
[Trace - 1:10:33 PM] Received response 'initialize - (0)' in 626ms.
Result: {
    "capabilities": {
        "textDocumentSync": 2,
        "documentSymbolProvider": true,
        "workspaceSymbolProvider": true,
        "completionProvider": {
            "triggerCharacters": [
                "$",
                ">",
                ":",
                "\\",
                "/",
                "'",
                "\"",
                "*",
                ".",
                "<"
            ],
            "resolveProvider": true
        },
        "signatureHelpProvider": {
            "triggerCharacters": [
                "(",
                ",",
                ":"
            ]
        },
        "definitionProvider": true,
        "documentFormattingProvider": false,
        "documentRangeFormattingProvider": false,
        "referencesProvider": true,
        "hoverProvider": true,
        "documentHighlightProvider": true,
        "foldingRangeProvider": false,
        "implementationProvider": false,
        "declarationProvider": false,
        "workspace": {
            "workspaceFolders": {
                "supported": true,
                "changeNotifications": true
            }
        },
        "renameProvider": false,
        "typeDefinitionProvider": false,
        "selectionRangeProvider": false,
        "codeActionProvider": false
    }
}

[Trace - 1:10:33 PM] Sending notification 'initialized'.
Params: {}

[Trace - 1:10:33 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php",
        "languageId": "php",
        "version": 1,
        "text": "<?php\n\nnamespace App\\Jobs;\n\n\nclass RunWorker {\n\t\n\tpublic function __construct()\n\t{\n\t\t// \n\t}\n\n\tpublic function handle()\n\t{\n\t\t// \n\t}\n\tpublic static function dispatchForReplication(string $runtype) {\n\t\treturn $runtype . ' dispatched';\n\n\t}\n}"
    }
}

[Trace - 1:10:33 PM] Received request 'workspace/configuration - (0)'.
Params: {
    "items": [
        {
            "section": "intelephense"
        },
        {
            "section": "intelephense",
            "scopeUri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug"
        }
    ]
}

[Trace - 1:10:33 PM] Sending response 'workspace/configuration - (0)'. Processing request took 1ms
Result: [
    {
        "compatibility": {
            "correctForBaseClassStaticUnionTypes": true,
            "correctForArrayAccessArrayAndTraversableArrayUnionTypes": true
        },
        "files": {
            "maxSize": 1000000,
            "associations": [
                "*.php",
                "*.phtml"
            ],
            "exclude": [
                "**/.git/**",
                "**/.svn/**",
                "**/.hg/**",
                "**/CVS/**",
                "**/.DS_Store/**",
                "**/node_modules/**",
                "**/bower_components/**",
                "**/vendor/**/{Tests,tests}/**",
                "**/.history/**",
                "**/vendor/**/vendor/**",
                "**/.git",
                "**/.svn",
                "**/.hg",
                "**/CVS",
                "**/.DS_Store",
                "**/Thumbs.db"
            ]
        },
        "stubs": [
            "apache",
            "bcmath",
            "bz2",
            "calendar",
            "com_dotnet",
            "Core",
            "ctype",
            "curl",
            "date",
            "dba",
            "dom",
            "enchant",
            "exif",
            "FFI",
            "fileinfo",
            "filter",
            "fpm",
            "ftp",
            "gd",
            "gettext",
            "gmp",
            "hash",
            "iconv",
            "imap",
            "intl",
            "json",
            "ldap",
            "libxml",
            "mbstring",
            "meta",
            "mysqli",
            "oci8",
            "odbc",
            "openssl",
            "pcntl",
            "pcre",
            "PDO",
            "pdo_ibm",
            "pdo_mysql",
            "pdo_pgsql",
            "pdo_sqlite",
            "pgsql",
            "Phar",
            "posix",
            "pspell",
            "random",
            "readline",
            "Reflection",
            "session",
            "shmop",
            "SimpleXML",
            "snmp",
            "soap",
            "sockets",
            "sodium",
            "SPL",
            "sqlite3",
            "standard",
            "superglobals",
            "sysvmsg",
            "sysvsem",
            "sysvshm",
            "tidy",
            "tokenizer",
            "xml",
            "xmlreader",
            "xmlrpc",
            "xmlwriter",
            "xsl",
            "Zend OPcache",
            "zip",
            "zlib"
        ],
        "completion": {
            "insertUseDeclaration": true,
            "fullyQualifyGlobalConstantsAndFunctions": false,
            "triggerParameterHints": true,
            "maxItems": 100
        },
        "format": {
            "enable": true,
            "braces": "k&r"
        },
        "environment": {
            "documentRoot": "",
            "includePaths": [
                "vendor"
            ],
            "phpVersion": "8.2.0",
            "shortOpenTag": true
        },
        "diagnostics": {
            "enable": true,
            "run": "onType",
            "embeddedLanguages": true,
            "undefinedSymbols": true,
            "undefinedVariables": true,
            "undefinedTypes": true,
            "undefinedFunctions": true,
            "undefinedConstants": true,
            "undefinedClassConstants": true,
            "undefinedMethods": true,
            "undefinedProperties": true,
            "unusedSymbols": true,
            "unexpectedTokens": true,
            "duplicateSymbols": true,
            "argumentCount": true,
            "typeErrors": true,
            "deprecated": true,
            "languageConstraints": true,
            "implementationErrors": true
        },
        "runtime": "",
        "maxMemory": 0,
        "licenceKey": "",
        "telemetry": {
            "enabled": false
        },
        "rename": {
            "exclude": [
                "**/vendor/**"
            ],
            "namespaceMode": "single"
        },
        "references": {
            "exclude": [
                "**/vendor/**"
            ]
        },
        "phpdoc": {
            "returnVoid": true,
            "textFormat": "snippet",
            "classTemplate": {
                "summary": "$1",
                "tags": [
                    "@package ${1:$SYMBOL_NAMESPACE}"
                ]
            },
            "propertyTemplate": {
                "summary": "$1",
                "tags": [
                    "@var ${1:$SYMBOL_TYPE}"
                ]
            },
            "functionTemplate": {
                "summary": "$1",
                "tags": [
                    "@param ${1:$SYMBOL_TYPE} $SYMBOL_NAME $2",
                    "@return ${1:$SYMBOL_TYPE} $2",
                    "@throws ${1:$SYMBOL_TYPE} $2"
                ]
            },
            "useFullyQualifiedNames": false
        },
        "trace": {
            "server": "verbose"
        }
    },
    {
        "compatibility": {
            "correctForBaseClassStaticUnionTypes": true,
            "correctForArrayAccessArrayAndTraversableArrayUnionTypes": true
        },
        "files": {
            "maxSize": 1000000,
            "associations": [
                "*.php",
                "*.phtml"
            ],
            "exclude": [
                "**/.git/**",
                "**/.svn/**",
                "**/.hg/**",
                "**/CVS/**",
                "**/.DS_Store/**",
                "**/node_modules/**",
                "**/bower_components/**",
                "**/vendor/**/{Tests,tests}/**",
                "**/.history/**",
                "**/vendor/**/vendor/**",
                "**/.git",
                "**/.svn",
                "**/.hg",
                "**/CVS",
                "**/.DS_Store",
                "**/Thumbs.db"
            ]
        },
        "stubs": [
            "apache",
            "bcmath",
            "bz2",
            "calendar",
            "com_dotnet",
            "Core",
            "ctype",
            "curl",
            "date",
            "dba",
            "dom",
            "enchant",
            "exif",
            "FFI",
            "fileinfo",
            "filter",
            "fpm",
            "ftp",
            "gd",
            "gettext",
            "gmp",
            "hash",
            "iconv",
            "imap",
            "intl",
            "json",
            "ldap",
            "libxml",
            "mbstring",
            "meta",
            "mysqli",
            "oci8",
            "odbc",
            "openssl",
            "pcntl",
            "pcre",
            "PDO",
            "pdo_ibm",
            "pdo_mysql",
            "pdo_pgsql",
            "pdo_sqlite",
            "pgsql",
            "Phar",
            "posix",
            "pspell",
            "random",
            "readline",
            "Reflection",
            "session",
            "shmop",
            "SimpleXML",
            "snmp",
            "soap",
            "sockets",
            "sodium",
            "SPL",
            "sqlite3",
            "standard",
            "superglobals",
            "sysvmsg",
            "sysvsem",
            "sysvshm",
            "tidy",
            "tokenizer",
            "xml",
            "xmlreader",
            "xmlrpc",
            "xmlwriter",
            "xsl",
            "Zend OPcache",
            "zip",
            "zlib"
        ],
        "completion": {
            "insertUseDeclaration": true,
            "fullyQualifyGlobalConstantsAndFunctions": false,
            "triggerParameterHints": true,
            "maxItems": 100
        },
        "format": {
            "enable": true,
            "braces": "k&r"
        },
        "environment": {
            "documentRoot": "",
            "includePaths": [
                "vendor"
            ],
            "phpVersion": "8.2.0",
            "shortOpenTag": true
        },
        "diagnostics": {
            "enable": true,
            "run": "onType",
            "embeddedLanguages": true,
            "undefinedSymbols": true,
            "undefinedVariables": true,
            "undefinedTypes": true,
            "undefinedFunctions": true,
            "undefinedConstants": true,
            "undefinedClassConstants": true,
            "undefinedMethods": true,
            "undefinedProperties": true,
            "unusedSymbols": true,
            "unexpectedTokens": true,
            "duplicateSymbols": true,
            "argumentCount": true,
            "typeErrors": true,
            "deprecated": true,
            "languageConstraints": true,
            "implementationErrors": true
        },
        "runtime": "",
        "maxMemory": 0,
        "licenceKey": "",
        "telemetry": {
            "enabled": false
        },
        "rename": {
            "exclude": [
                "**/vendor/**"
            ],
            "namespaceMode": "single"
        },
        "references": {
            "exclude": [
                "**/vendor/**"
            ]
        },
        "phpdoc": {
            "returnVoid": true,
            "textFormat": "snippet",
            "classTemplate": {
                "summary": "$1",
                "tags": [
                    "@package ${1:$SYMBOL_NAMESPACE}"
                ]
            },
            "propertyTemplate": {
                "summary": "$1",
                "tags": [
                    "@var ${1:$SYMBOL_TYPE}"
                ]
            },
            "functionTemplate": {
                "summary": "$1",
                "tags": [
                    "@param ${1:$SYMBOL_TYPE} $SYMBOL_NAME $2",
                    "@return ${1:$SYMBOL_TYPE} $2",
                    "@throws ${1:$SYMBOL_TYPE} $2"
                ]
            },
            "useFullyQualifiedNames": false
        },
        "trace": {
            "server": "verbose"
        }
    }
]

[Trace - 1:10:33 PM] Received request 'client/registerCapability - (1)'.
Params: {
    "registrations": [
        {
            "id": "76bd0422-1d50-4878-87bb-f35d66969f62",
            "method": "textDocument/formatting",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "php",
                        "scheme": "file"
                    },
                    {
                        "language": "php",
                        "scheme": "untitled"
                    }
                ]
            }
        },
        {
            "id": "b56f5e8f-27c5-479c-ae49-7846dfeaef51",
            "method": "textDocument/rangeFormatting",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "php",
                        "scheme": "file"
                    },
                    {
                        "language": "php",
                        "scheme": "untitled"
                    }
                ]
            }
        }
    ]
}

[Trace - 1:10:33 PM] Sending response 'client/registerCapability - (1)'. Processing request took 0ms
No result returned.

[Trace - 1:10:33 PM] Received request 'client/registerCapability - (2)'.
Params: {
    "registrations": [
        {
            "id": "aa869edf-61c5-4780-860a-3331cb056554",
            "method": "workspace/didChangeWatchedFiles",
            "registerOptions": {
                "watchers": [
                    {
                        "globPattern": "**/*",
                        "kind": 7
                    }
                ]
            }
        }
    ]
}

[Trace - 1:10:33 PM] Sending response 'client/registerCapability - (2)'. Processing request took 1ms
No result returned.

[Trace - 1:10:33 PM] Received request 'client/registerCapability - (3)'.
Params: {
    "registrations": [
        {
            "id": "2e49c20d-7807-42b5-9ab7-cb6e0e1b637e",
            "method": "workspace/didChangeConfiguration",
            "registerOptions": {
                "section": "intelephense"
            }
        }
    ]
}

[Trace - 1:10:33 PM] Sending response 'client/registerCapability - (3)'. Processing request took 0ms
No result returned.

[Trace - 1:10:33 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
    "settings": {
        "intelephense": {
            "compatibility": {
                "correctForBaseClassStaticUnionTypes": true,
                "correctForArrayAccessArrayAndTraversableArrayUnionTypes": true
            },
            "files": {
                "maxSize": 1000000,
                "associations": [
                    "*.php",
                    "*.phtml"
                ],
                "exclude": [
                    "**/.git/**",
                    "**/.svn/**",
                    "**/.hg/**",
                    "**/CVS/**",
                    "**/.DS_Store/**",
                    "**/node_modules/**",
                    "**/bower_components/**",
                    "**/vendor/**/{Tests,tests}/**",
                    "**/.history/**",
                    "**/vendor/**/vendor/**"
                ]
            },
            "stubs": [
                "apache",
                "bcmath",
                "bz2",
                "calendar",
                "com_dotnet",
                "Core",
                "ctype",
                "curl",
                "date",
                "dba",
                "dom",
                "enchant",
                "exif",
                "FFI",
                "fileinfo",
                "filter",
                "fpm",
                "ftp",
                "gd",
                "gettext",
                "gmp",
                "hash",
                "iconv",
                "imap",
                "intl",
                "json",
                "ldap",
                "libxml",
                "mbstring",
                "meta",
                "mysqli",
                "oci8",
                "odbc",
                "openssl",
                "pcntl",
                "pcre",
                "PDO",
                "pdo_ibm",
                "pdo_mysql",
                "pdo_pgsql",
                "pdo_sqlite",
                "pgsql",
                "Phar",
                "posix",
                "pspell",
                "random",
                "readline",
                "Reflection",
                "session",
                "shmop",
                "SimpleXML",
                "snmp",
                "soap",
                "sockets",
                "sodium",
                "SPL",
                "sqlite3",
                "standard",
                "superglobals",
                "sysvmsg",
                "sysvsem",
                "sysvshm",
                "tidy",
                "tokenizer",
                "xml",
                "xmlreader",
                "xmlrpc",
                "xmlwriter",
                "xsl",
                "Zend OPcache",
                "zip",
                "zlib"
            ],
            "completion": {
                "insertUseDeclaration": true,
                "fullyQualifyGlobalConstantsAndFunctions": false,
                "triggerParameterHints": true,
                "maxItems": 100
            },
            "format": {
                "enable": true,
                "braces": "k&r"
            },
            "environment": {
                "documentRoot": "",
                "includePaths": [
                    "vendor"
                ],
                "phpVersion": "8.2.0",
                "shortOpenTag": true
            },
            "diagnostics": {
                "enable": true,
                "run": "onType",
                "embeddedLanguages": true,
                "undefinedSymbols": true,
                "undefinedVariables": true,
                "undefinedTypes": true,
                "undefinedFunctions": true,
                "undefinedConstants": true,
                "undefinedClassConstants": true,
                "undefinedMethods": true,
                "undefinedProperties": true,
                "unusedSymbols": true,
                "unexpectedTokens": true,
                "duplicateSymbols": true,
                "argumentCount": true,
                "typeErrors": true,
                "deprecated": true,
                "languageConstraints": true,
                "implementationErrors": true
            },
            "runtime": "",
            "maxMemory": 0,
            "licenceKey": "",
            "telemetry": {
                "enabled": false
            },
            "rename": {
                "exclude": [
                    "**/vendor/**"
                ],
                "namespaceMode": "single"
            },
            "references": {
                "exclude": [
                    "**/vendor/**"
                ]
            },
            "phpdoc": {
                "returnVoid": true,
                "textFormat": "snippet",
                "classTemplate": {
                    "summary": "$1",
                    "tags": [
                        "@package ${1:$SYMBOL_NAMESPACE}"
                    ]
                },
                "propertyTemplate": {
                    "summary": "$1",
                    "tags": [
                        "@var ${1:$SYMBOL_TYPE}"
                    ]
                },
                "functionTemplate": {
                    "summary": "$1",
                    "tags": [
                        "@param ${1:$SYMBOL_TYPE} $SYMBOL_NAME $2",
                        "@return ${1:$SYMBOL_TYPE} $2",
                        "@throws ${1:$SYMBOL_TYPE} $2"
                    ]
                },
                "useFullyQualifiedNames": false
            },
            "trace": {
                "server": "verbose"
            }
        }
    }
}

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Searching file:///c%3A/Users/Vadim/.vscode/extensions/bmewburn.vscode-intelephense-client-1.10.4/node_modules/intelephense/lib/stub for files to index."
}

[Info  - 1:10:33 PM] Searching file:///c%3A/Users/Vadim/.vscode/extensions/bmewburn.vscode-intelephense-client-1.10.4/node_modules/intelephense/lib/stub for files to index.
[Trace - 1:10:33 PM] Received request 'workspace/configuration - (4)'.
Params: {
    "items": [
        {
            "section": "intelephense"
        },
        {
            "section": "intelephense",
            "scopeUri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug"
        }
    ]
}

[Trace - 1:10:33 PM] Sending response 'workspace/configuration - (4)'. Processing request took 0ms
Result: [
    {
        "compatibility": {
            "correctForBaseClassStaticUnionTypes": true,
            "correctForArrayAccessArrayAndTraversableArrayUnionTypes": true
        },
        "files": {
            "maxSize": 1000000,
            "associations": [
                "*.php",
                "*.phtml"
            ],
            "exclude": [
                "**/.git/**",
                "**/.svn/**",
                "**/.hg/**",
                "**/CVS/**",
                "**/.DS_Store/**",
                "**/node_modules/**",
                "**/bower_components/**",
                "**/vendor/**/{Tests,tests}/**",
                "**/.history/**",
                "**/vendor/**/vendor/**",
                "**/.git",
                "**/.svn",
                "**/.hg",
                "**/CVS",
                "**/.DS_Store",
                "**/Thumbs.db"
            ]
        },
        "stubs": [
            "apache",
            "bcmath",
            "bz2",
            "calendar",
            "com_dotnet",
            "Core",
            "ctype",
            "curl",
            "date",
            "dba",
            "dom",
            "enchant",
            "exif",
            "FFI",
            "fileinfo",
            "filter",
            "fpm",
            "ftp",
            "gd",
            "gettext",
            "gmp",
            "hash",
            "iconv",
            "imap",
            "intl",
            "json",
            "ldap",
            "libxml",
            "mbstring",
            "meta",
            "mysqli",
            "oci8",
            "odbc",
            "openssl",
            "pcntl",
            "pcre",
            "PDO",
            "pdo_ibm",
            "pdo_mysql",
            "pdo_pgsql",
            "pdo_sqlite",
            "pgsql",
            "Phar",
            "posix",
            "pspell",
            "random",
            "readline",
            "Reflection",
            "session",
            "shmop",
            "SimpleXML",
            "snmp",
            "soap",
            "sockets",
            "sodium",
            "SPL",
            "sqlite3",
            "standard",
            "superglobals",
            "sysvmsg",
            "sysvsem",
            "sysvshm",
            "tidy",
            "tokenizer",
            "xml",
            "xmlreader",
            "xmlrpc",
            "xmlwriter",
            "xsl",
            "Zend OPcache",
            "zip",
            "zlib"
        ],
        "completion": {
            "insertUseDeclaration": true,
            "fullyQualifyGlobalConstantsAndFunctions": false,
            "triggerParameterHints": true,
            "maxItems": 100
        },
        "format": {
            "enable": true,
            "braces": "k&r"
        },
        "environment": {
            "documentRoot": "",
            "includePaths": [
                "vendor"
            ],
            "phpVersion": "8.2.0",
            "shortOpenTag": true
        },
        "diagnostics": {
            "enable": true,
            "run": "onType",
            "embeddedLanguages": true,
            "undefinedSymbols": true,
            "undefinedVariables": true,
            "undefinedTypes": true,
            "undefinedFunctions": true,
            "undefinedConstants": true,
            "undefinedClassConstants": true,
            "undefinedMethods": true,
            "undefinedProperties": true,
            "unusedSymbols": true,
            "unexpectedTokens": true,
            "duplicateSymbols": true,
            "argumentCount": true,
            "typeErrors": true,
            "deprecated": true,
            "languageConstraints": true,
            "implementationErrors": true
        },
        "runtime": "",
        "maxMemory": 0,
        "licenceKey": "",
        "telemetry": {
            "enabled": false
        },
        "rename": {
            "exclude": [
                "**/vendor/**"
            ],
            "namespaceMode": "single"
        },
        "references": {
            "exclude": [
                "**/vendor/**"
            ]
        },
        "phpdoc": {
            "returnVoid": true,
            "textFormat": "snippet",
            "classTemplate": {
                "summary": "$1",
                "tags": [
                    "@package ${1:$SYMBOL_NAMESPACE}"
                ]
            },
            "propertyTemplate": {
                "summary": "$1",
                "tags": [
                    "@var ${1:$SYMBOL_TYPE}"
                ]
            },
            "functionTemplate": {
                "summary": "$1",
                "tags": [
                    "@param ${1:$SYMBOL_TYPE} $SYMBOL_NAME $2",
                    "@return ${1:$SYMBOL_TYPE} $2",
                    "@throws ${1:$SYMBOL_TYPE} $2"
                ]
            },
            "useFullyQualifiedNames": false
        },
        "trace": {
            "server": "verbose"
        }
    },
    {
        "compatibility": {
            "correctForBaseClassStaticUnionTypes": true,
            "correctForArrayAccessArrayAndTraversableArrayUnionTypes": true
        },
        "files": {
            "maxSize": 1000000,
            "associations": [
                "*.php",
                "*.phtml"
            ],
            "exclude": [
                "**/.git/**",
                "**/.svn/**",
                "**/.hg/**",
                "**/CVS/**",
                "**/.DS_Store/**",
                "**/node_modules/**",
                "**/bower_components/**",
                "**/vendor/**/{Tests,tests}/**",
                "**/.history/**",
                "**/vendor/**/vendor/**",
                "**/.git",
                "**/.svn",
                "**/.hg",
                "**/CVS",
                "**/.DS_Store",
                "**/Thumbs.db"
            ]
        },
        "stubs": [
            "apache",
            "bcmath",
            "bz2",
            "calendar",
            "com_dotnet",
            "Core",
            "ctype",
            "curl",
            "date",
            "dba",
            "dom",
            "enchant",
            "exif",
            "FFI",
            "fileinfo",
            "filter",
            "fpm",
            "ftp",
            "gd",
            "gettext",
            "gmp",
            "hash",
            "iconv",
            "imap",
            "intl",
            "json",
            "ldap",
            "libxml",
            "mbstring",
            "meta",
            "mysqli",
            "oci8",
            "odbc",
            "openssl",
            "pcntl",
            "pcre",
            "PDO",
            "pdo_ibm",
            "pdo_mysql",
            "pdo_pgsql",
            "pdo_sqlite",
            "pgsql",
            "Phar",
            "posix",
            "pspell",
            "random",
            "readline",
            "Reflection",
            "session",
            "shmop",
            "SimpleXML",
            "snmp",
            "soap",
            "sockets",
            "sodium",
            "SPL",
            "sqlite3",
            "standard",
            "superglobals",
            "sysvmsg",
            "sysvsem",
            "sysvshm",
            "tidy",
            "tokenizer",
            "xml",
            "xmlreader",
            "xmlrpc",
            "xmlwriter",
            "xsl",
            "Zend OPcache",
            "zip",
            "zlib"
        ],
        "completion": {
            "insertUseDeclaration": true,
            "fullyQualifyGlobalConstantsAndFunctions": false,
            "triggerParameterHints": true,
            "maxItems": 100
        },
        "format": {
            "enable": true,
            "braces": "k&r"
        },
        "environment": {
            "documentRoot": "",
            "includePaths": [
                "vendor"
            ],
            "phpVersion": "8.2.0",
            "shortOpenTag": true
        },
        "diagnostics": {
            "enable": true,
            "run": "onType",
            "embeddedLanguages": true,
            "undefinedSymbols": true,
            "undefinedVariables": true,
            "undefinedTypes": true,
            "undefinedFunctions": true,
            "undefinedConstants": true,
            "undefinedClassConstants": true,
            "undefinedMethods": true,
            "undefinedProperties": true,
            "unusedSymbols": true,
            "unexpectedTokens": true,
            "duplicateSymbols": true,
            "argumentCount": true,
            "typeErrors": true,
            "deprecated": true,
            "languageConstraints": true,
            "implementationErrors": true
        },
        "runtime": "",
        "maxMemory": 0,
        "licenceKey": "",
        "telemetry": {
            "enabled": false
        },
        "rename": {
            "exclude": [
                "**/vendor/**"
            ],
            "namespaceMode": "single"
        },
        "references": {
            "exclude": [
                "**/vendor/**"
            ]
        },
        "phpdoc": {
            "returnVoid": true,
            "textFormat": "snippet",
            "classTemplate": {
                "summary": "$1",
                "tags": [
                    "@package ${1:$SYMBOL_NAMESPACE}"
                ]
            },
            "propertyTemplate": {
                "summary": "$1",
                "tags": [
                    "@var ${1:$SYMBOL_TYPE}"
                ]
            },
            "functionTemplate": {
                "summary": "$1",
                "tags": [
                    "@param ${1:$SYMBOL_TYPE} $SYMBOL_NAME $2",
                    "@return ${1:$SYMBOL_TYPE} $2",
                    "@throws ${1:$SYMBOL_TYPE} $2"
                ]
            },
            "useFullyQualifiedNames": false
        },
        "trace": {
            "server": "verbose"
        }
    }
]

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Searching file:///c%3A/Users/Vadim/Desktop/intelephense_bug for files to index."
}

[Info  - 1:10:33 PM] Searching file:///c%3A/Users/Vadim/Desktop/intelephense_bug for files to index.
[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Indexing started."
}

[Info  - 1:10:33 PM] Indexing started.
[Trace - 1:10:33 PM] Received notification 'indexingStarted'.
Params: [
    null
]

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Indexing ended. 2 files indexed in 0s."
}

[Info  - 1:10:33 PM] Indexing ended. 2 files indexed in 0s.
[Trace - 1:10:33 PM] Received notification 'indexingEnded'.
Params: [
    null
]

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Writing state to c:\\Users\\Vadim\\AppData\\Roaming\\Code\\User\\workspaceStorage\\1605696c08589babd57788929a5a170b\\bmewburn.vscode-intelephense-client\\35da00a."
}

[Info  - 1:10:33 PM] Writing state to c:\Users\Vadim\AppData\Roaming\Code\User\workspaceStorage\1605696c08589babd57788929a5a170b\bmewburn.vscode-intelephense-client\35da00a.
[Trace - 1:10:33 PM] Sending request 'textDocument/documentSymbol - (1)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php"
    }
}

[Trace - 1:10:33 PM] Received response 'textDocument/documentSymbol - (1)' in 11ms.
Result: [
    {
        "name": "App\\Jobs",
        "kind": 3,
        "range": {
            "start": {
                "line": 2,
                "character": 0
            },
            "end": {
                "line": 2,
                "character": 19
            }
        },
        "selectionRange": {
            "start": {
                "line": 2,
                "character": 10
            },
            "end": {
                "line": 2,
                "character": 18
            }
        }
    },
    {
        "name": "RunWorker",
        "kind": 5,
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 20,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 5,
                "character": 6
            },
            "end": {
                "line": 5,
                "character": 15
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 7,
                        "character": 1
                    },
                    "end": {
                        "line": 10,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 7,
                        "character": 17
                    },
                    "end": {
                        "line": 7,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 12,
                        "character": 1
                    },
                    "end": {
                        "line": 15,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 12,
                        "character": 17
                    },
                    "end": {
                        "line": 12,
                        "character": 23
                    }
                }
            },
            {
                "name": "dispatchForReplication",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 16,
                        "character": 1
                    },
                    "end": {
                        "line": 19,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 16,
                        "character": 24
                    },
                    "end": {
                        "line": 16,
                        "character": 46
                    }
                },
                "children": [
                    {
                        "name": "$runtype",
                        "kind": 13,
                        "range": {
                            "start": {
                                "line": 16,
                                "character": 47
                            },
                            "end": {
                                "line": 16,
                                "character": 62
                            }
                        },
                        "selectionRange": {
                            "start": {
                                "line": 16,
                                "character": 54
                            },
                            "end": {
                                "line": 16,
                                "character": 62
                            }
                        }
                    }
                ]
            }
        ]
    }
]

[Trace - 1:10:33 PM] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "Wrote state in 0.1s."
}

[Info  - 1:10:33 PM] Wrote state in 0.1s.
[Trace - 1:10:34 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php",
    "diagnostics": []
}

[Trace - 1:10:34 PM] Sending request 'textDocument/documentSymbol - (2)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php"
    }
}

[Trace - 1:10:34 PM] Received response 'textDocument/documentSymbol - (2)' in 1ms.
Result: [
    {
        "name": "App\\Jobs",
        "kind": 3,
        "range": {
            "start": {
                "line": 2,
                "character": 0
            },
            "end": {
                "line": 2,
                "character": 19
            }
        },
        "selectionRange": {
            "start": {
                "line": 2,
                "character": 10
            },
            "end": {
                "line": 2,
                "character": 18
            }
        }
    },
    {
        "name": "RunWorker",
        "kind": 5,
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 20,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 5,
                "character": 6
            },
            "end": {
                "line": 5,
                "character": 15
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 7,
                        "character": 1
                    },
                    "end": {
                        "line": 10,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 7,
                        "character": 17
                    },
                    "end": {
                        "line": 7,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 12,
                        "character": 1
                    },
                    "end": {
                        "line": 15,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 12,
                        "character": 17
                    },
                    "end": {
                        "line": 12,
                        "character": 23
                    }
                }
            },
            {
                "name": "dispatchForReplication",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 16,
                        "character": 1
                    },
                    "end": {
                        "line": 19,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 16,
                        "character": 24
                    },
                    "end": {
                        "line": 16,
                        "character": 46
                    }
                },
                "children": [
                    {
                        "name": "$runtype",
                        "kind": 13,
                        "range": {
                            "start": {
                                "line": 16,
                                "character": 47
                            },
                            "end": {
                                "line": 16,
                                "character": 62
                            }
                        },
                        "selectionRange": {
                            "start": {
                                "line": 16,
                                "character": 54
                            },
                            "end": {
                                "line": 16,
                                "character": 62
                            }
                        }
                    }
                ]
            }
        ]
    }
]

[Trace - 1:10:34 PM] Sending notification '$/setTrace'.
Params: {
    "value": "verbose"
}

[Trace - 1:10:35 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php",
    "diagnostics": []
}

[Trace - 1:10:59 PM] Sending request 'textDocument/documentHighlight - (3)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/RunWorker.php"
    },
    "position": {
        "line": 16,
        "character": 41
    }
}

[Trace - 1:10:59 PM] Sending notification '$/cancelRequest'.
Params: {
    "id": 3
}

[Trace - 1:10:59 PM] Received response 'textDocument/documentHighlight - (3)' in 2ms.
Result: [
    {
        "range": {
            "start": {
                "line": 16,
                "character": 24
            },
            "end": {
                "line": 16,
                "character": 46
            }
        },
        "kind": 2
    }
]

[Trace - 1:11:01 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php",
        "languageId": "php",
        "version": 1,
        "text": "<?php\n\nnamespace App\\SomethingElse;\nRunWorker::class;\n\nclass SomeExampleFile {\n\t\n\tpublic function __construct()\n\t{\n\t\t// \n\n\t\tRunWorker::dispatchForReplication('some type');\n\t}\n\n\tpublic function handle()\n\t{\n\t\t// \n\t}\n}"
    }
}

[Trace - 1:11:01 PM] Sending request 'textDocument/documentSymbol - (4)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php"
    }
}

[Trace - 1:11:01 PM] Received response 'textDocument/documentSymbol - (4)' in 1ms.
Result: [
    {
        "name": "App\\SomethingElse",
        "kind": 3,
        "range": {
            "start": {
                "line": 2,
                "character": 0
            },
            "end": {
                "line": 2,
                "character": 28
            }
        },
        "selectionRange": {
            "start": {
                "line": 2,
                "character": 10
            },
            "end": {
                "line": 2,
                "character": 27
            }
        }
    },
    {
        "name": "SomeExampleFile",
        "kind": 5,
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 18,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 5,
                "character": 6
            },
            "end": {
                "line": 5,
                "character": 21
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 7,
                        "character": 1
                    },
                    "end": {
                        "line": 12,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 7,
                        "character": 17
                    },
                    "end": {
                        "line": 7,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 14,
                        "character": 1
                    },
                    "end": {
                        "line": 17,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 14,
                        "character": 17
                    },
                    "end": {
                        "line": 14,
                        "character": 23
                    }
                }
            }
        ]
    }
]

[Trace - 1:11:01 PM] Sending request 'textDocument/documentSymbol - (5)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php"
    }
}

[Trace - 1:11:01 PM] Received response 'textDocument/documentSymbol - (5)' in 0ms.
Result: [
    {
        "name": "App\\SomethingElse",
        "kind": 3,
        "range": {
            "start": {
                "line": 2,
                "character": 0
            },
            "end": {
                "line": 2,
                "character": 28
            }
        },
        "selectionRange": {
            "start": {
                "line": 2,
                "character": 10
            },
            "end": {
                "line": 2,
                "character": 27
            }
        }
    },
    {
        "name": "SomeExampleFile",
        "kind": 5,
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 18,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 5,
                "character": 6
            },
            "end": {
                "line": 5,
                "character": 21
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 7,
                        "character": 1
                    },
                    "end": {
                        "line": 12,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 7,
                        "character": 17
                    },
                    "end": {
                        "line": 7,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 14,
                        "character": 1
                    },
                    "end": {
                        "line": 17,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 14,
                        "character": 17
                    },
                    "end": {
                        "line": 14,
                        "character": 23
                    }
                }
            }
        ]
    }
]

[Trace - 1:11:01 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 3,
                    "character": 0
                },
                "end": {
                    "line": 3,
                    "character": 9
                }
            },
            "message": "Undefined type 'App\\SomethingElse\\RunWorker'.",
            "severity": 1,
            "code": "P1009",
            "source": "intelephense"
        },
        {
            "range": {
                "start": {
                    "line": 11,
                    "character": 2
                },
                "end": {
                    "line": 11,
                    "character": 11
                }
            },
            "message": "Undefined type 'App\\SomethingElse\\RunWorker'.",
            "severity": 1,
            "code": "P1009",
            "source": "intelephense"
        }
    ]
}

[Trace - 1:11:16 PM] Sending request 'textDocument/documentHighlight - (6)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php"
    },
    "position": {
        "line": 11,
        "character": 8
    }
}

[Trace - 1:11:16 PM] Received response 'textDocument/documentHighlight - (6)' in 1ms.
Result: [
    {
        "range": {
            "start": {
                "line": 3,
                "character": 0
            },
            "end": {
                "line": 3,
                "character": 9
            }
        },
        "kind": 2
    },
    {
        "range": {
            "start": {
                "line": 11,
                "character": 2
            },
            "end": {
                "line": 11,
                "character": 11
            }
        },
        "kind": 2
    }
]

[Trace - 1:11:33 PM] Sending request 'textDocument/hover - (7)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/SomeExampleFile.php"
    },
    "position": {
        "line": 11,
        "character": 8
    }
}

[Trace - 1:11:33 PM] Received response 'textDocument/hover - (7)' in 1ms.
No result returned.

[Trace - 1:11:37 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/TestQuickfix.php",
        "languageId": "php",
        "version": 1,
        "text": "<?php\n\n\nnamespace A;\n\n\nclass TestQuickfix {\n\t\n\tpublic function __construct()\n\t{\n\t\t// \n\t}\n\n\tpublic function handle()\n\t{\n\t\t// \n\t}\n\tpublic static function dispatchForReplication(string $runtype) {\n\t\treturn $runtype . ' dispatched';\n\t}\n}"
    }
}

[Trace - 1:11:37 PM] Sending request 'textDocument/documentSymbol - (8)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/TestQuickfix.php"
    }
}

[Trace - 1:11:37 PM] Received response 'textDocument/documentSymbol - (8)' in 1ms.
Result: [
    {
        "name": "A",
        "kind": 3,
        "range": {
            "start": {
                "line": 3,
                "character": 0
            },
            "end": {
                "line": 3,
                "character": 12
            }
        },
        "selectionRange": {
            "start": {
                "line": 3,
                "character": 10
            },
            "end": {
                "line": 3,
                "character": 11
            }
        }
    },
    {
        "name": "TestQuickfix",
        "kind": 5,
        "range": {
            "start": {
                "line": 6,
                "character": 0
            },
            "end": {
                "line": 20,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 6,
                "character": 6
            },
            "end": {
                "line": 6,
                "character": 18
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 8,
                        "character": 1
                    },
                    "end": {
                        "line": 11,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 8,
                        "character": 17
                    },
                    "end": {
                        "line": 8,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 13,
                        "character": 1
                    },
                    "end": {
                        "line": 16,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 13,
                        "character": 17
                    },
                    "end": {
                        "line": 13,
                        "character": 23
                    }
                }
            },
            {
                "name": "dispatchForReplication",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 17,
                        "character": 1
                    },
                    "end": {
                        "line": 19,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 17,
                        "character": 24
                    },
                    "end": {
                        "line": 17,
                        "character": 46
                    }
                },
                "children": [
                    {
                        "name": "$runtype",
                        "kind": 13,
                        "range": {
                            "start": {
                                "line": 17,
                                "character": 47
                            },
                            "end": {
                                "line": 17,
                                "character": 62
                            }
                        },
                        "selectionRange": {
                            "start": {
                                "line": 17,
                                "character": 54
                            },
                            "end": {
                                "line": 17,
                                "character": 62
                            }
                        }
                    }
                ]
            }
        ]
    }
]

[Trace - 1:11:38 PM] Sending request 'textDocument/documentSymbol - (9)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/TestQuickfix.php"
    }
}

[Trace - 1:11:38 PM] Received response 'textDocument/documentSymbol - (9)' in 0ms.
Result: [
    {
        "name": "A",
        "kind": 3,
        "range": {
            "start": {
                "line": 3,
                "character": 0
            },
            "end": {
                "line": 3,
                "character": 12
            }
        },
        "selectionRange": {
            "start": {
                "line": 3,
                "character": 10
            },
            "end": {
                "line": 3,
                "character": 11
            }
        }
    },
    {
        "name": "TestQuickfix",
        "kind": 5,
        "range": {
            "start": {
                "line": 6,
                "character": 0
            },
            "end": {
                "line": 20,
                "character": 1
            }
        },
        "selectionRange": {
            "start": {
                "line": 6,
                "character": 6
            },
            "end": {
                "line": 6,
                "character": 18
            }
        },
        "children": [
            {
                "name": "__construct",
                "kind": 9,
                "range": {
                    "start": {
                        "line": 8,
                        "character": 1
                    },
                    "end": {
                        "line": 11,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 8,
                        "character": 17
                    },
                    "end": {
                        "line": 8,
                        "character": 28
                    }
                }
            },
            {
                "name": "handle",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 13,
                        "character": 1
                    },
                    "end": {
                        "line": 16,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 13,
                        "character": 17
                    },
                    "end": {
                        "line": 13,
                        "character": 23
                    }
                }
            },
            {
                "name": "dispatchForReplication",
                "kind": 6,
                "range": {
                    "start": {
                        "line": 17,
                        "character": 1
                    },
                    "end": {
                        "line": 19,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 17,
                        "character": 24
                    },
                    "end": {
                        "line": 17,
                        "character": 46
                    }
                },
                "children": [
                    {
                        "name": "$runtype",
                        "kind": 13,
                        "range": {
                            "start": {
                                "line": 17,
                                "character": 47
                            },
                            "end": {
                                "line": 17,
                                "character": 62
                            }
                        },
                        "selectionRange": {
                            "start": {
                                "line": 17,
                                "character": 54
                            },
                            "end": {
                                "line": 17,
                                "character": 62
                            }
                        }
                    }
                ]
            }
        ]
    }
]

[Trace - 1:11:38 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/TestQuickfix.php",
    "diagnostics": []
}

[Trace - 1:11:41 PM] Sending notification 'textDocument/didOpen'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php",
        "languageId": "php",
        "version": 1,
        "text": "<?php\n\n\nnamespace B;\n\nTestQuickfix::class;"
    }
}

[Trace - 1:11:41 PM] Sending request 'textDocument/documentSymbol - (10)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    }
}

[Trace - 1:11:41 PM] Received response 'textDocument/documentSymbol - (10)' in 1ms.
Result: [
    {
        "name": "B",
        "kind": 3,
        "range": {
            "start": {
                "line": 3,
                "character": 0
            },
            "end": {
                "line": 3,
                "character": 12
            }
        },
        "selectionRange": {
            "start": {
                "line": 3,
                "character": 10
            },
            "end": {
                "line": 3,
                "character": 11
            }
        }
    }
]

[Trace - 1:11:41 PM] Sending request 'textDocument/documentSymbol - (11)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    }
}

[Trace - 1:11:41 PM] Received response 'textDocument/documentSymbol - (11)' in 0ms.
Result: [
    {
        "name": "B",
        "kind": 3,
        "range": {
            "start": {
                "line": 3,
                "character": 0
            },
            "end": {
                "line": 3,
                "character": 12
            }
        },
        "selectionRange": {
            "start": {
                "line": 3,
                "character": 10
            },
            "end": {
                "line": 3,
                "character": 11
            }
        }
    }
]

[Trace - 1:11:41 PM] Received notification 'textDocument/publishDiagnostics'.
Params: {
    "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php",
    "diagnostics": [
        {
            "range": {
                "start": {
                    "line": 5,
                    "character": 0
                },
                "end": {
                    "line": 5,
                    "character": 12
                }
            },
            "message": "Undefined type 'B\\TestQuickfix'.",
            "severity": 1,
            "code": "P1009",
            "source": "intelephense"
        }
    ]
}

[Trace - 1:11:41 PM] Sending request 'textDocument/hover - (12)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    },
    "position": {
        "line": 5,
        "character": 17
    }
}

[Trace - 1:11:41 PM] Received response 'textDocument/hover - (12)' in 2ms.
No result returned.

[Trace - 1:11:42 PM] Sending request 'textDocument/hover - (13)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    },
    "position": {
        "line": 5,
        "character": 3
    }
}

[Trace - 1:11:42 PM] Received response 'textDocument/hover - (13)' in 1ms.
No result returned.

[Trace - 1:11:45 PM] Sending request 'textDocument/documentHighlight - (14)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    },
    "position": {
        "line": 5,
        "character": 3
    }
}

[Trace - 1:11:45 PM] Received response 'textDocument/documentHighlight - (14)' in 1ms.
Result: [
    {
        "range": {
            "start": {
                "line": 5,
                "character": 0
            },
            "end": {
                "line": 5,
                "character": 12
            }
        },
        "kind": 2
    }
]

[Trace - 1:13:20 PM] Sending request 'textDocument/hover - (15)'.
Params: {
    "textDocument": {
        "uri": "file:///c%3A/Users/Vadim/Desktop/intelephense_bug/test.php"
    },
    "position": {
        "line": 5,
        "character": 4
    }
}

[Trace - 1:13:20 PM] Received response 'textDocument/hover - (15)' in 1ms.
No result returned.
Iaotle commented 2 weeks ago

Ah. Apologies, seems like I forgot to activate the license after reinstalling vscode. D'oh!

User error :'(