Skip to content

Special case for PHPUnit mock object returns? PHP0410 #102

@addshore

Description

@addshore

I end up with a lot of warnings around the use of the PHPUnit MockObject class in tests.

image

I wonder what the general advice is from phptools folks to deal with this?
Is it expected that we should correctly typehint the possibility of MockObject in all of these places?
Should / could we add some sort of magic special case for such magicish mock objects?

Metadata

Metadata

Assignees

No one assigned

    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