hoaproject/Protocol

Protocol already defined

titolendable opened this issue · 4 comments

Every time I run a composer command, I am getting the following warning:

Warning: stream_wrapper_register(): Protocol hoa:// is already defined. in vendor/hoa/protocol/Wrapper.php on line 580

How can I avoid this warning? I did not register this package on composer, it is being used as a dependency to another package. The version in use is:

hoa/protocol 1.16.01.11 The Hoa\Protocol library.

Hywan commented

Hello :-),

Yes, some people has this trouble. This is because you still have hoa/core somewhere and your dependencie may not be updated correctly. Because of the BC break, some libraries still require old versions, I don't know exactly why Composer does this (this is not its fault, maybe its ours). Can I see you composer.json please?

This is still a problem when using composer update --prefer-lowest, see failure here:

https://travis-ci.org/shadowhand/latitude/jobs/363503556#L613-L618

I am not sure what package(s) need to be version locked to prevent this error. The fact that Hoa does not use semver makes this even more difficult.