You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One can provide project specific composer packages within local_packages.
We now have packages following that structure and want to use class:move feature, which fails with:
[RuntimeException]
There are no class name candidates
The Phpactor\ClassFileConverter\Adapter\Composer\Psr4NameInflector will not work as it will receive /vendor/prefix/name/Classes instead of the local_packages/package/Classes path.
Adding a realpath() call within class-to-file/lib/Adapter/Composer/ComposerFileToClass seems to help. I'm not sure if that might break other things.
The text was updated successfully, but these errors were encountered:
One can install packages from a local path via composers repositories
type "path".
Those are typically symlinks which were not resolved.
We therefore add a realpath() call, but falling back to old behavior if
it didn't resolve. That way we keep independent of realpath() as
requested by the inline comment.
Resolves: phpactor/phpactor#2727
Given the following setup within
composer.json
of a project:One can provide project specific composer packages within
local_packages
.We now have packages following that structure and want to use
class:move
feature, which fails with:The
Phpactor\ClassFileConverter\Adapter\Composer\Psr4NameInflector
will not work as it will receive/vendor/prefix/name/Classes
instead of thelocal_packages/package/Classes
path.Adding a
realpath()
call withinclass-to-file/lib/Adapter/Composer/ComposerFileToClass
seems to help. I'm not sure if that might break other things.The text was updated successfully, but these errors were encountered: