Created
September 5, 2013 07:58
-
-
Save sveneisenschmidt/6447213 to your computer and use it in GitHub Desktop.
Forced and variable interface typehints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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