Skip to content

Add StreamWrapperInterface #10506

Open
Open
@xepozz

Description

@xepozz

Description

I had to deal with https://www.php.net/manual/en/class.streamwrapper.php and faced with a problem that it's not a real class/interface reportedly documentation quote This is NOT a real class, only a prototype of how a class defining its own protocol should be..
But if you try to implement your own wrapper you may face with lots of errors like the method % does not exist. That's sad and I understand the base, but what do you think about adding just a common interface like I have made in the core? I'm sure that not only me did the same in their projects and this structured interface may have people to implement their own wrappers.
I didn't deep into all possible usage combinations of the wrappers, but it would be great to separate the one onto a few interfaces by ISP principle.

I may create the PR, but show me all places I need to change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions