Skip to content

release -> main - #88

Merged
rejmann merged 12 commits into
mainfrom
release
Jul 30, 2026
Merged

release -> main#88
rejmann merged 12 commits into
mainfrom
release

Conversation

@rejmann

@rejmann rejmann commented Jul 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

rejmann and others added 12 commits July 29, 2026 20:49
…efixes

Use a boundary check when replacing old namespaces so the updater
only targets complete FQCNs. This avoids corrupting existing names
that merely start with the old namespace, and the tests lock in the
regression case.
…e-rename

fix(namespace): #82 - prevent namespace renames from matching identifier prefixes
…ctors

Use namespace-aware regex boundaries when renaming classes and
scanning imports so sub-namespace paths are not mistaken for the
class itself. This avoids corrupting aliased imports that share a
name prefix with the renamed class.
Reuse a shared boundary regex builder so class renames and reference
updates avoid matching namespace prefixes or double-applying suffixes.
This keeps the matching rules consistent across update and import
cleanup code paths.
…sion

fix: #84 - prevent prefix matches in php namespace refactors
… move

    Add an opt-in rename pass after class/file moves so constructor-typed
    properties and their usages stay aligned with the renamed class.
    Include a separate flag for cases where the existing property name does
    not match the class-name convention.
    Add documentation for the new property-rename step, its config
    flags, and where it fits in the file-move workflow so users can
    understand why the extra behavior is opt-in and when it applies.
… affected files

rename the master setting to `renameProperties.enabled` so it can
coexist with nested options in VS Code's schema.

also limit property renaming to files already affected by the class
rename, which avoids unrelated workspace-wide matches and keeps the
operation aligned with the namespace update that triggered it.

BREAKING CHANGE: the configuration key is now
`phpNamespaceRefactor.renameProperties.enabled` instead of
`phpNamespaceRefactor.renameProperties`
… polymorphic key

Replace the split enabled/mismatch flags with a single
renameProperties setting that can be read as boolean or object.
This avoids the VS Code schema conflict while preserving the same
behavior through a resolver-driven flow.

BREAKING CHANGE: renameProperties.enabled and
renameProperties.renameMismatchedNames were removed in favor of
phpNamespaceRefactor.renameProperties
Document that the configuration resolvers do not cache workspace
configuration so updates are observed on the next operation. Also note
that class renames may optionally rename matching constructor
properties when property renaming is enabled.
@rejmann rejmann self-assigned this Jul 30, 2026
@rejmann
rejmann merged commit 22f0738 into main Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant