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
{{ message }}
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.
fix-class-names fails with DeletedLineException when the class itself and the base class should be renamed.
Testcase:
Scenario: "Rename class and its base class"
Given a PHP File named "src/Foo/Boing.php" with:
"""
<?php
namespace Foo;
class Foo extends Baes
{
}
"""
Given a PHP File named "src/Foo/Base.php" with:
"""
<?php
namespace Foo;
class Baes
{
}
"""
When I use refactoring "fix-class-names" with:
| arg | value |
| dir | src/ |
Then the PHP File "src/Foo.php" should be refactored:
"""
--- a/vfs://project/src/src/Foo/Boing.php
+++ b/vfs://project/src/src/Foo/Boing.php
@@ -1,6 +1,6 @@
<?php
namespace Foo;
-class Foo extends Baes
+class Boing extends Base
{
}
--- a/vfs://project/src/Foo/Base.php
+++ b/vfs://project/src/Foo/Base.php
@@ -1,5 +1,5 @@
<?php
namespace Foo;
-class Baes
+class Base
{
}
"""
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
fix-class-names fails with
DeletedLineException
when the class itself and the base class should be renamed.Testcase:
The text was updated successfully, but these errors were encountered: