You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "frkinta (Jira)" <ji...@apache.org> on 2021/11/11 10:54:00 UTC

[jira] [Created] (NETBEANS-6194) Renaming folder inside PSR-4 directory don't use refactor feature

frkinta created NETBEANS-6194:
---------------------------------

             Summary: Renaming folder inside PSR-4 directory don't use refactor feature
                 Key: NETBEANS-6194
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6194
             Project: NetBeans
          Issue Type: Bug
          Components: php - Editor, php - Refactoring
    Affects Versions: 12.5, 12.4
            Reporter: frkinta


{code:php}
<?php

declare(strict_types=1);

namespace Issue\PDO;

class ClassTest
{

    public function __construct(string $a)
    {
        error_log($a);
    }

    public function doNothingAction(): Class2
    {
        throw new \Exception('nothing to do');
    }

}

{code}
The previous code is a file inside a PSR-4 project located in directory "src/PDO". If I try to rename the folder "PDO" to "MySQL", a refactor dialog open, "PDO" is changed to new name and nothing else happen ("Rename Without Refactoring" checkbox not checked).

What I expect is the refactoring feature to
 * change namespaces all over the project from "Issue\PDO" to "Issue\MySQL"
 * adjust "use" statements

after renaming "PDO" to "MySQL".



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists