DEVSENSE / phptools-docs

PHP Tools public content
Apache License 2.0
77 stars 10 forks source link

PHP6609 error #635

Open Infiland opened 3 weeks ago

Infiland commented 3 weeks ago

There is an error that occurs in the extension where it reports that the class name should be lowercase, or the filename should be the same as the class. Using PHP 8.3

However, it still throws this error in the vscode IDE.

image

Autoload is defined in index.php

image

This is the composer.json file which autoloads all classes in the Src folder

image

Running index.php doesn't print any errors or exception in the browser or console. This exception seems to only appear in vscode, but only if the PHP extension is enabled.

jakubmisek commented 3 weeks ago

Thank you for reporting that!

It seems we got the letter casing wrong, and hence we misreport the problem.

Wll be fixed!

jakubmisek commented 3 weeks ago

Are you on windows/linux or mac?

Infiland commented 3 weeks ago

Are you on windows/linux or mac?

I am on Windows, I can list my PC Specs but I am not sure if it's relevant.

jakubmisek commented 3 weeks ago

For me: there are a few related issues with VSCode and LSP implementation:

https://github.com/microsoft/language-server-protocol/issues/1263 https://github.com/microsoft/vscode/issues/137256

jakubmisek commented 3 weeks ago

so far of what we've tested, the issue should be fixed in the upcoming update.

Infiland commented 3 weeks ago

so far of what we've tested, the issue should be fixed in the upcoming update.

Great! I will let you know if the issue is resolved in the next update