Created
September 17, 2013 07:05
-
-
Save andriesss/6590912 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
interface Comparable { | |
function compare(self $compare); | |
} | |
class Foo implements Comparable { | |
function compare(self $compare) {} | |
} | |
class Bar implements Comparable { | |
function compare(self $compare) {} | |
} | |
$foo = new Foo(); | |
$bar = new Bar(); | |
$foo->compare($foo); | |
$bar->compare($bar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@andriesss that's about right... Again, I don't think that's a PHP issue.