Created
October 8, 2015 03:55
-
-
Save hafriedlander/55995b7098cf0a88bbc1 to your computer and use it in GitHub Desktop.
PHP private abstract function in traits test
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
<?php | |
trait Foo { | |
abstract private function qux(); | |
} | |
class Bar { | |
use Foo { qux as protected; } | |
} | |
class Baz extends Bar { | |
protected function qux() { return true; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment