http icon indicating copy to clipboard operation
http copied to clipboard

Unknown scalar type

Open mrcnpdlk opened this issue 7 years ago • 2 comments

After upgrade to 5.0 my IDE (PHP Storm) shows me a warning: Expected \Sabre\HTTP\scalar, got string Inspection info: Invocation parameter types are not compatible with declared.

https://github.com/sabre-io/http/blob/3577f014fe188572386903722e2a78ad6ad45e7e/lib/Message.php#L223

In the previous version (4.2) type was defined as string|string[]

mrcnpdlk avatar Nov 28 '18 11:11 mrcnpdlk

Feel free to submit a pull request too fix this - THX

DeepDiver1975 avatar Nov 28 '18 11:11 DeepDiver1975

I will fix it in the evening. Thanks

mrcnpdlk avatar Nov 28 '18 11:11 mrcnpdlk

Looks like this was fixed by https://github.com/sabre-io/http/pull/192

kesselb avatar Jun 14 '23 21:06 kesselb