We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be nice to be able to ask for an intersection type:
function it_does_stuff( Foo&Bar $fooBar) { $fooBar->methodFromFoo()->willReturn(1); $fooBar->methodFromBar()->willReturn(2); }
This should be technically possible, Prophecy is happy to double multiple types after all.
This probably won't be useful until Prophecy gets the ability to double classes that use intersections though :/
In the short term we probably want to disallow Intersection type hints in the codebase before we tag a release for 8.1
The text was updated successfully, but these errors were encountered:
Was about to write "but what about intersection of two classes"... but of course this is ⊥ unless one of them is a subtype of the other, so.
Sorry, something went wrong.
Yes I _think_so 😅 That's good to point out though
Reader&XmlReader is just the same as XmlReader so probably an error on the author's part
Reader&XmlReader
XmlReader
No branches or pull requests
It'd be nice to be able to ask for an intersection type:
This should be technically possible, Prophecy is happy to double multiple types after all.
This probably won't be useful until Prophecy gets the ability to double classes that use intersections though :/
In the short term we probably want to disallow Intersection type hints in the codebase before we tag a release for 8.1
The text was updated successfully, but these errors were encountered: