-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the correct method visibility when entering the method in regard …
…to trait adaptation
- Loading branch information
1 parent
9e15783
commit c524c4e
Showing
3 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Bug4516; | ||
|
||
interface RecordsMessages | ||
{ | ||
public function record($message): void; | ||
} | ||
|
||
trait PrivateMessageRecorderCapabilities | ||
{ | ||
protected function record($message): void | ||
{ | ||
} | ||
} | ||
|
||
class PublicMessageRecorder implements RecordsMessages | ||
{ | ||
use PrivateMessageRecorderCapabilities { record as public; } | ||
} |