Skip to content

Strauss replacing strings that looks like class name #112

@Dartui

Description

@Dartui

Here is a repository that recreates the issue: https://github.com/Dartui/strauss-prefix-error
Here is a change that is generated by Strauss: https://github.com/Dartui/strauss-prefix-error/pull/1/files

If you want to test that locally simply clone repository and run composer install.

TL;DR - Strauss replaces string values to the FQCN if it matches the name of the imported class that is used in the same file. Is it possible to exclude this behavior somehow? I've tried using exclude_from_prefix but without success

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions