8000 Rename TestCase class to prevent import conflicts with PHPUnit's TestCase · Issue #1951 · Seldaek/monolog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rename TestCase class to prevent import conflicts with PHPUnit's TestCase #1951
Closed
@staabm

Description

@staabm

Monolog version 3

Write your question here.

today I was stumbling over a problem of wrongly used TestCase class because autocompletion liked monologs class more then the phpunit one.

this remindet me of a similar issue we had in the past with PHPStan: phpstan/phpstan-src#634

do you think monolog could make a similar move and deprecate+rename the monologs' TestCase class so autocompletion in popular IDEs won't accidentally add monologs TestCase class instead of e.g. PHPunits class?

I think most arguments why this is a good idea and actually the root cause is a phpstorm bug was already discussed in the linked PHPStan issue. I think a lot of people would have less problems when this class would be renamed, even though its totally fine because its in a dedicated namespace.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0