Skip to content

Instantly share code, notes, and snippets.

@sveneisenschmidt
Created September 5, 2013 07:58
Show Gist options
  • Save sveneisenschmidt/6447213 to your computer and use it in GitHub Desktop.
Save sveneisenschmidt/6447213 to your computer and use it in GitHub Desktop.
Forced and variable interface typehints
public function addClient(PublishInterface||ConsumeInterface $client)
{
}
public function addClient(PublishInterface + ConsumeInterface $client)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment