Skip to content

rector internal stubs conflicting with PHPTools internal types #241

@d8vjork

Description

@d8vjork

Add rector to any project that contains enums: composer require --dev rector/rector

Actual behaviour

image

Looking to the definition of that \BackedEnum seems like PHP Tools is taking it before its own implementation of \BackedEnum

Expected behaviour

While I think this is a good thing to have (I even think Symfony have some packages like php-${extOrPHPVersion}-polyfill for the purpose of adding stuff to IDEs)

I worry anything PHP related can be modified by adding a simple dependency that does stuff like this and breaks the functionality of this extension and its autocompletion

Hope there's an alternative solution for these types to either be friendly with the stuff mentioned before (Symfony polyfills) and internals of this extension

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions