-
-
Notifications
You must be signed in to change notification settings - Fork 137
PSR-0 Underscore compatability #2859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Technically the namespace sperator is a constant of the phpactor/lib/Name/QualifiedName.php Line 9 in 961515a
Can you change that to an underscore and see if that already fixes your problem? |
The project uses psr-4 and |
rather this is to do with class-to-file and the way it determines the class name candidates from file paths:https://github.com/phpactor/class-to-file |
I would say adding a dependency on composer's namespace mapping every time you want to create a However there are automated tools to help you migrate to namespaces in your project like rector. (last section of the article) |
it has nothing to do with the |
Yeah it seems like it, and it also finds the class if you generate the composer autoloader with authoriative class maps ( ShortName Completion is out of the window then though. |
I work on some legacy projects that use underscore based PSR-0 classnames, e.g
and the file src/Foo/Bar.php, would have a classname of Foo_Bar, but phpactor suggests it be Bar, and a namespace of Foo
IMO it should take into account the delineating character and suggest namespaces/classnames based on that
The text was updated successfully, but these errors were encountered: